Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Cherry-pick] remove functions not belong to public-api from __all__ #47577

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion python/paddle/audio/datasets/esc50.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
from paddle.dataset.common import DATA_HOME
from .dataset import AudioClassificationDataset

__all__ = ['ESC50']
__all__ = []


class ESC50(AudioClassificationDataset):
Expand Down
2 changes: 1 addition & 1 deletion python/paddle/audio/datasets/tess.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
from paddle.dataset.common import DATA_HOME
from .dataset import AudioClassificationDataset

__all__ = ['TESS']
__all__ = []


class TESS(AudioClassificationDataset):
Expand Down
48 changes: 38 additions & 10 deletions python/paddle/distributed/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
from .collective import P2POp # noqa: F401
from .collective import reduce_scatter # noqa: F401

from .communication import * # noqa: F401
from .communication import stream

from .auto_parallel import shard_op # noqa: F401
from .auto_parallel import shard_tensor # noqa: F401
Expand All @@ -66,15 +66,43 @@

from . import cloud_utils # noqa: F401

from .sharding import * # noqa: F401
from .sharding import group_sharded_parallel, save_group_sharded_model

__all__ = [ # noqa
"spawn", "launch", "scatter", "broadcast", "ParallelEnv", "new_group",
"init_parallel_env", "gloo_init_parallel_env", "gloo_barrier",
"gloo_release", "QueueDataset", "split", "CountFilterEntry",
"ShowClickEntry", "get_world_size", "get_group", "all_gather",
"all_gather_object", "InMemoryDataset", "barrier", "all_reduce", "alltoall",
"alltoall_single", "send", "reduce", "recv", "ReduceOp", "wait", "get_rank",
"ProbabilityEntry", "ParallelMode", "is_initialized",
"destroy_process_group", "isend", "irecv", "reduce_scatter", "stream"
"spawn",
"launch",
"scatter",
"broadcast",
"ParallelEnv",
"new_group",
"init_parallel_env",
"gloo_init_parallel_env",
"gloo_barrier",
"gloo_release",
"QueueDataset",
"split",
"CountFilterEntry",
"ShowClickEntry",
"get_world_size",
"get_group",
"all_gather",
"all_gather_object",
"InMemoryDataset",
"barrier",
"all_reduce",
"alltoall",
"alltoall_single",
"send",
"reduce",
"recv",
"ReduceOp",
"wait",
"get_rank",
"ProbabilityEntry",
"ParallelMode",
"is_initialized",
"destroy_process_group",
"isend",
"irecv",
"reduce_scatter",
]
2 changes: 0 additions & 2 deletions python/paddle/distributed/communication/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
6 changes: 1 addition & 5 deletions python/paddle/geometric/message_passing/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,4 @@
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__ = []
4 changes: 1 addition & 3 deletions python/paddle/geometric/sampling/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,4 @@

from .neighbors import sample_neighbors # noqa: F401

__all__ = [
'sample_neighbors',
]
__all__ = []
2 changes: 0 additions & 2 deletions python/paddle/incubate/multiprocessing/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,6 @@

from multiprocessing import * # noqa: F403

__all__ += multiprocessing.__all__ # type: ignore[attr-defined]

# Only support linux for now
# Only support file_system sharing strategy.

Expand Down
Loading