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

Fill Constant op only for float? #12792

Closed
sefira opened this issue Aug 19, 2018 · 2 comments
Closed

Fill Constant op only for float? #12792

sefira opened this issue Aug 19, 2018 · 2 comments
Assignees
Labels
FAQ User 用于标记用户问题

Comments

@sefira
Copy link
Contributor

sefira commented Aug 19, 2018

https://github.com/PaddlePaddle/Paddle/blob/develop/paddle/fluid/operators/fill_constant_op.cc#L68

How can I fill int, double etc. to Tensor

@guoshengCS
Copy link
Contributor

You can fill int or double by setting the argument dtype="int32" or dtype="float64", please refer to this:
http://www.paddlepaddle.org/documentation/api/zh/0.14.0/layers.html#fill-constant

@guoshengCS guoshengCS added the User 用于标记用户问题 label Aug 20, 2018
@gongweibao gongweibao self-assigned this Aug 22, 2018
@sefira
Copy link
Contributor Author

sefira commented Aug 24, 2018

solved, thx

@sefira sefira closed this as completed Aug 24, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
FAQ User 用于标记用户问题
Projects
None yet
Development

No branches or pull requests

3 participants