未验证 提交 698128dd 编写于 作者: J JYChen 提交者: GitHub

remove functions not belong to public-api from __all__ (#47502)

上级 a57a19ea
......@@ -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):
......
......@@ -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):
......
......@@ -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"]
......@@ -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__ = []
......@@ -14,6 +14,4 @@
from .neighbors import sample_neighbors # noqa: F401
__all__ = [
'sample_neighbors',
]
__all__ = []
......@@ -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.
......
......@@ -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')
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册