Support uint8 for fill_constant#31911
Merged
Xreki merged 1 commit intoPaddlePaddle:developfrom Apr 1, 2021
Merged
Conversation
|
Thanks for your contribution! |
|
✅ This PR's description meets the template requirements! |
920925b to
929925f
Compare
929925f to
81d6694
Compare
81d6694 to
8f947cb
Compare
b5d3424 to
3bc1d5b
Compare
9fa5b2a to
646f5f7
Compare
646f5f7 to
a031ef7
Compare
a031ef7 to
6e01aa6
Compare
Xreki
approved these changes
Apr 1, 2021
| If ``shape`` is a list or tuple, the elements of it should be integers or Tensors with shape [1]. | ||
| If ``shape`` is an Tensor, it should be an 1-D Tensor with date type int32 or int64. | ||
| dtype(np.dtype|str): Data type of the output Tensor which can | ||
| be float16, float32, float64, int32, int64. |
Contributor
There was a problem hiding this comment.
python/paddle/tensor/creation.py里面2.0的接口,ones、zeros、full的文档里面也加一下uint8,可以下个PR再加。
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
PR types
New features
PR changes
APIs
Describe
Support uint8 for fill_constant