diff --git a/mindspore/ops/functional.py b/mindspore/ops/functional.py index 9de52b091ed..c27d7c0fd58 100644 --- a/mindspore/ops/functional.py +++ b/mindspore/ops/functional.py @@ -185,3 +185,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')