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

Inconsistent type exception in mean_op when doing gradient test #5281

Closed
pkuyym opened this issue Nov 1, 2017 · 2 comments
Closed

Inconsistent type exception in mean_op when doing gradient test #5281

pkuyym opened this issue Nov 1, 2017 · 2 comments

Comments

@pkuyym
Copy link
Contributor

pkuyym commented Nov 1, 2017

When checking gradient for an operator, a mean operator will be appended after the operator. However, in mean_op sometimes getting data pointer from OG will be failed due to inconsistent type (op type is float32 and OG type is double). My question is how to specify the data type for mean_op's OG?

@pkuyym pkuyym changed the title MeanOp in gradient test Inconsistent type exception in mean_op when doing gradient test Nov 1, 2017
@pkuyym
Copy link
Contributor Author

pkuyym commented Nov 2, 2017

Please refer this issue: #5163

@reyoung
Copy link
Collaborator

reyoung commented Nov 2, 2017

It because the numpy arrary of output is wrong.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants