From 1ad876cec88bbda63b1cef207da22935b4b1dc0a Mon Sep 17 00:00:00 2001 From: liuxiao93 Date: Thu, 24 Sep 2020 11:11:42 +0800 Subject: [PATCH] Remove Primitive from functional.__all__. --- mindspore/ops/functional.py | 1 + 1 file changed, 1 insertion(+) 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')