未验证 提交 c3d1e7e5 编写于 作者: H HongyuJia 提交者: GitHub

[Polish CustomOP] Clean custom OP output when import modules (#51125)

上级 928faf53
...@@ -190,7 +190,6 @@ def custom_write_stub(resource, pyfile): ...@@ -190,7 +190,6 @@ def custom_write_stub(resource, pyfile):
assert isinstance(spec.loader, importlib.abc.Loader) assert isinstance(spec.loader, importlib.abc.Loader)
spec.loader.exec_module(mod) spec.loader.exec_module(mod)
except ImportError: except ImportError:
print('using custom operator only')
mod = types.ModuleType(__name__) mod = types.ModuleType(__name__)
# load custom op shared library with abs path # load custom op shared library with abs path
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册