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

tfjs-npy doesn't work with the latest version of TensorFlow.js anymore #2

Open
caisq opened this issue Jan 10, 2019 · 0 comments · May be fixed by #3
Open

tfjs-npy doesn't work with the latest version of TensorFlow.js anymore #2

caisq opened this issue Jan 10, 2019 · 0 comments · May be fixed by #3

Comments

@caisq
Copy link

caisq commented Jan 10, 2019

tfjs-npy version: 0.0.3
TensorFlow.js version: 0.14.2

The Tensor object returned by parse() can't be used properly by TensorFlow.js (e.g., its Model.predict() or Mdoel.fit() methods). If you try to do that, you'll get an error.

The workaround is to get the raw data out from the Tensor returned by parse() and create a new Tensor from it using tf.tensor2d() etc.

@MaximeKjaer MaximeKjaer linked a pull request May 6, 2021 that will close this issue
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

Successfully merging a pull request may close this issue.

1 participant