2020-09-25 09:26:51 +08:00
|
|
|
# -*- Python -*-
|
|
|
|
# This file is licensed under a pytorch-style license
|
|
|
|
# See frontends/pytorch/LICENSE for license information.
|
2020-10-10 07:21:01 +08:00
|
|
|
# RUN: %PYTHON %s | FileCheck %s
|
2020-09-25 09:26:51 +08:00
|
|
|
|
|
|
|
import _torch_mlir
|
|
|
|
|
|
|
|
# This check is just for a built-in op that is unlikely to change (and is
|
|
|
|
# otherwise insignificant).
|
2021-04-28 06:15:50 +08:00
|
|
|
# CHECK: {'name': ('aten::mul', 'Tensor'), 'is_c10_op': True, 'is_vararg': False, 'is_varret': False, 'is_mutable': False, 'arguments': [{'name': 'self', 'type': 'Tensor', 'pytype': 'Tensor'}, {'name': 'other', 'type': 'Tensor', 'pytype': 'Tensor'}], 'returns': [{'name': '', 'type': 'Tensor', 'pytype': 'Tensor'}]}
|
2020-09-29 09:36:00 +08:00
|
|
|
print('\n\n'.join([repr(r) for r in _torch_mlir.get_registered_ops()]))
|