未验证 提交 a9bee08d 编写于 作者: Y YuanRisheng 提交者: GitHub

[NewIR]Delete ops list (#57065)

* delete list

* fix ci bugs
上级 720018bb
......@@ -95,8 +95,8 @@ class OpsAPIGen(CodeGen):
def _gen_one_function_impl(self, name):
if (
name.endswith('grad')
or name.endswith('grad_')
name.endswith('_grad')
or name.endswith('_grad_')
or name.endswith('xpu')
or name in SPECIAL_STATIC_ONLY_APIS
):
......
......@@ -16,14 +16,11 @@ from paddle.base import core
__all__ = []
UNIFIED_APIS = ['mean', 'concat', 'add_n', 'scale']
for name in dir(core.eager.ops):
globals()[name] = getattr(core.eager.ops, name)
__all__.append(name)
for name in dir(core.ir.ops):
if name in UNIFIED_APIS:
globals()[name] = getattr(core.ir.ops, name)
if name not in __all__:
__all__.append(name)
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册