diff --git a/mindspore/ops/functional.py b/mindspore/ops/functional.py index 6173f3a8d7..1a5f7a08f2 100644 --- a/mindspore/ops/functional.py +++ b/mindspore/ops/functional.py @@ -186,3 +186,4 @@ tensor_operator_registry.register('shape', shape) tensor_operator_registry.register('cast', cast) __all__ = [name for name in dir() if name[0] != "_"] +__all__.remove('Primitive')