diff --git a/python/paddle/audio/datasets/esc50.py b/python/paddle/audio/datasets/esc50.py index 1d3e0e07baf74a66557b3c1df78fea517e652ab0..b50845eda2ebb98140786261d98317f12b38ba15 100644 --- a/python/paddle/audio/datasets/esc50.py +++ b/python/paddle/audio/datasets/esc50.py @@ -20,7 +20,7 @@ from paddle.utils import download from paddle.dataset.common import DATA_HOME from .dataset import AudioClassificationDataset -__all__ = ['ESC50'] +__all__ = [] class ESC50(AudioClassificationDataset): diff --git a/python/paddle/audio/datasets/tess.py b/python/paddle/audio/datasets/tess.py index b180d704e68244809f9a06f65462ff97e2d2634d..a379aedc6026bc5379d148cb7e263005ec8cec8c 100644 --- a/python/paddle/audio/datasets/tess.py +++ b/python/paddle/audio/datasets/tess.py @@ -20,7 +20,7 @@ from paddle.utils import download from paddle.dataset.common import DATA_HOME from .dataset import AudioClassificationDataset -__all__ = ['TESS'] +__all__ = [] class TESS(AudioClassificationDataset): diff --git a/python/paddle/distributed/communication/__init__.py b/python/paddle/distributed/communication/__init__.py index 95d6c31580a886dd212108d83f812c84647fce90..97043fd7ba6885aac81cad5a49924c23c67d4d47 100644 --- a/python/paddle/distributed/communication/__init__.py +++ b/python/paddle/distributed/communication/__init__.py @@ -11,5 +11,3 @@ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. - -__all__ = ["stream"] diff --git a/python/paddle/geometric/message_passing/__init__.py b/python/paddle/geometric/message_passing/__init__.py index f215e5be74a48b1c956d4065df9e26635b7c67b0..c07f9bc40c6b39967ed168afb11928eb2ba1d635 100644 --- a/python/paddle/geometric/message_passing/__init__.py +++ b/python/paddle/geometric/message_passing/__init__.py @@ -16,8 +16,4 @@ from .send_recv import send_u_recv # noqa: F401 from .send_recv import send_ue_recv # noqa: F401 from .send_recv import send_uv # noqa: F401 -__all__ = [ - 'send_u_recv', - 'send_ue_recv', - 'send_uv', -] +__all__ = [] diff --git a/python/paddle/geometric/sampling/__init__.py b/python/paddle/geometric/sampling/__init__.py index 282fb8fd56792e0b40217bc068fecf909201ee2c..2e5b24fdd60b7fbc366f23a048b0645e2df9284c 100644 --- a/python/paddle/geometric/sampling/__init__.py +++ b/python/paddle/geometric/sampling/__init__.py @@ -14,6 +14,4 @@ from .neighbors import sample_neighbors # noqa: F401 -__all__ = [ - 'sample_neighbors', -] +__all__ = [] diff --git a/python/paddle/incubate/multiprocessing/__init__.py b/python/paddle/incubate/multiprocessing/__init__.py index 27c23be3a89411da702e3071fec4c99186fca4b9..df0f98f74d58bcc64adb396baf834466f4ac6876 100644 --- a/python/paddle/incubate/multiprocessing/__init__.py +++ b/python/paddle/incubate/multiprocessing/__init__.py @@ -19,8 +19,6 @@ __all__ = [] from multiprocessing import * # noqa: F403 -__all__ += multiprocessing.__all__ # type: ignore[attr-defined] - # Only support linux for now # Only support file_system sharing strategy. diff --git a/python/paddle/tensor/ops.py b/python/paddle/tensor/ops.py index 4a5994076cf89b32debfa06d6312b1d2cec20b9a..0f5bac3c6e58356c2416e3eed00a5b01356a31bb 100644 --- a/python/paddle/tensor/ops.py +++ b/python/paddle/tensor/ops.py @@ -57,9 +57,6 @@ __inplace_unary_func__ = [ __all__ = [] -for _OP in set(__all__): - globals()[_OP] = generate_layer_fn(_OP) - # It is a hot fix in some unittest using: # fluid.layers.scale(x=x, scale=10.0, out=out_var) # e.g.: test_program_code.py, test_dist_train.py @@ -67,10 +64,6 @@ globals()['_scale'] = generate_layer_fn('scale') globals()['_elementwise_div'] = generate_layer_fn('elementwise_div') -__all__ += __activations_noattr__ -__all__ += __unary_func__ -__all__ += __inplace_unary_func__ - for _OP in set(__activations_noattr__): _new_OP = _OP if _OP in __deprecated_func_name__: @@ -932,8 +925,6 @@ def tan(x, name=None): return out -__all__ += ['erf'] - _erf_ = generate_layer_fn('erf')