-
Notifications
You must be signed in to change notification settings - Fork 5.7k
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
remove packages in __all__ #32759
Merged
+80
−19
Merged
remove packages in __all__ #32759
Changes from all commits
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
54ab656
[OPs] Bug fix, fix the segment mean for illegal syncthreads usage. (#…
ZHUI 0989cbd
Merge remote-tracking branch 'paddle/develop' into develop
zhiboniu 579e5aa
remove packages in __all__
zhiboniu df37ba9
create new public api level paddle.callbacks;paddle.hub;paddle.utils.…
zhiboniu File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
# Copyright (c) 2021 PaddlePaddle Authors. All Rights Reserved | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# 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. | ||
|
||
from .hapi.callbacks import Callback # noqa: F401 | ||
from .hapi.callbacks import ProgBarLogger # noqa: F401 | ||
from .hapi.callbacks import ModelCheckpoint # noqa: F401 | ||
from .hapi.callbacks import VisualDL # noqa: F401 | ||
from .hapi.callbacks import LRScheduler # noqa: F401 | ||
from .hapi.callbacks import EarlyStopping # noqa: F401 | ||
from .hapi.callbacks import ReduceLROnPlateau # noqa: F401 | ||
|
||
__all__ = [ #noqa | ||
'Callback', | ||
'ProgBarLogger', | ||
'ModelCheckpoint', | ||
'VisualDL', | ||
'LRScheduler', | ||
'EarlyStopping', | ||
'ReduceLROnPlateau' | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# Copyright (c) 2021 PaddlePaddle Authors. All Rights Reserved | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# 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. | ||
|
||
from .hapi.hub import list # noqa: F401 | ||
from .hapi.hub import help # noqa: F401 | ||
from .hapi.hub import load # noqa: F401 | ||
|
||
__all__ = [ #noqa | ||
'list', 'help', 'load' | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,18 +19,13 @@ | |
from .lazy_import import try_import # noqa: F401 | ||
from .op_version import OpLastCheckpointChecker # noqa: F401 | ||
from .install_check import run_check # noqa: F401 | ||
from ..fluid.framework import unique_name # noqa: F401 | ||
from . import unique_name # noqa: F401 | ||
from ..fluid.framework import require_version # noqa: F401 | ||
|
||
from . import download # noqa: F401 | ||
from . import image_util # noqa: F401 | ||
from . import cpp_extension # noqa: F401 | ||
|
||
__all__ = [ #noqa | ||
'deprecated', | ||
'download', | ||
'run_check', | ||
'unique_name', | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. unique_name虽然是一个文件,但底层的API需要暴露 There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. done,再paddle/utils新增unique_name.py文件开放__all__列表 |
||
'require_version', | ||
'try_import' | ||
__all__ = [ #noqa | ||
'deprecated', 'run_check', 'require_version', 'try_import' | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# Copyright (c) 2021 PaddlePaddle Authors. All Rights Reserved | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# 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. | ||
|
||
from ..fluid.unique_name import generate # noqa: F401 | ||
from ..fluid.unique_name import switch # noqa: F401 | ||
from ..fluid.unique_name import guard # noqa: F401 | ||
|
||
__all__ = [ #noqa | ||
'generate', 'switch', 'guard' | ||
] |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这个API虽然放在这里不太合适,但不能直接删除。
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
clip_by_norm没有真是实现,剔除空名