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

Improve the error messages in tensor()/tensorXd() #424

Closed
dsmilkov opened this issue Jun 13, 2018 · 1 comment
Closed

Improve the error messages in tensor()/tensorXd() #424

dsmilkov opened this issue Jun 13, 2018 · 1 comment
Assignees

Comments

@dsmilkov
Copy link
Contributor

dsmilkov commented Jun 13, 2018

For example:

  • if someone calls tf.tensor() with a null shape, we say Error: Constructing tensor of shape (NaN) should match the length of values (0). Instead we should just say the shape is null.
  • if someone calls tf.tensor() with values as null, we should say values is null, instead of saying that values is not a Flat/TypedArray.

See this discussion for context.

@dsmilkov dsmilkov self-assigned this Jun 13, 2018
@dsmilkov dsmilkov changed the title Improve the error messages in tensorxd() Improve the error messages in tensor()/tensorXd() Jun 13, 2018
@dsmilkov
Copy link
Contributor Author

dsmilkov commented Jul 1, 2018

Fixed in tensorflow/tfjs-core#1111

@dsmilkov dsmilkov closed this as completed Jul 1, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant