-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
[Typing] Ensure packaging tensor.pyi
into wheel
#64575
Merged
Merged
Changes from 14 commits
Commits
Show all changes
24 commits
Select commit
Hold shift + click to select a range
29e27dd
[Update] CMakeLists.txt for pack tensor.pyi
megemini 53ac455
[Update] CMakeLists.txt
megemini 4d2ab65
[Change] CMakeLists.txt depends
megemini 18ca0ca
[Change] add CMakeLists.txt target
megemini a2bbbdd
[Update] CMakeLists.txt target dep
megemini badc1f9
[Update] CMakeLists.txt target dep
megemini 9b7eb0b
[Change] framework.py paddle_version to paddle.version
megemini e26ff49
[Change] quantized_linear.py from paddle import version
megemini 2293d02
[Change] check is_paddle_installed
megemini ebcc87b
[Change] CMakeLists deps
megemini 84fd3cd
[Change] CMakeLists deps on infer
megemini 4424f19
[Change] CMakeLists gen after wheel
megemini 877d97e
[debug] core import
megemini 1b79366
[debug] copy libs
megemini 80afecc
[Change] add dll dirs in win
megemini 921cb7b
[Update] gen_tensor_stub format
megemini 53670fc
Merge branch 'develop' of https://github.com/PaddlePaddle/Paddle into…
megemini abc48ff
Merge branch 'develop' of https://github.com/PaddlePaddle/Paddle into…
megemini 328a10b
[Change] gen tensor stub from setup
megemini dafb932
[Update] del comments
megemini 4fbd7ea
[Update] setup.py.in add function check_build_dependency
megemini 93f7350
[Update] gen_tensor_stub.py
megemini 3580be7
Merge branch 'develop' of https://github.com/PaddlePaddle/Paddle into…
megemini d77e427
Merge branch 'develop' of https://github.com/PaddlePaddle/Paddle into…
megemini 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
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
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 |
---|---|---|
|
@@ -12,7 +12,18 @@ | |
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
|
||
from paddle import _C_ops, version | ||
from paddle import _C_ops | ||
|
||
try: | ||
from paddle import version | ||
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. 这里同样,删掉 version import,改成 |
||
except ImportError: | ||
import sys | ||
|
||
sys.stderr.write( | ||
'''Warning with import paddle: you should not | ||
import paddle from the source directory; please install paddlepaddle*.whl firstly.''' | ||
) | ||
|
||
from paddle.base.data_feeder import check_dtype | ||
from paddle.base.framework import convert_np_dtype_to_dtype_ | ||
from paddle.device.cuda import get_device_capability | ||
|
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
Oops, something went wrong.
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.
这里从其他开发者角度来看会有点奇怪,为什么没有安装却可以调用呢?这里是否可以赋予更细致的语义?比如这里应该是信息已生成,是否可以用
__is_metainfo_generated
?加__
以免误 import,毕竟这是__init__