-
Notifications
You must be signed in to change notification settings - Fork 584
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
input must be a scalar, but it has shape [1] #301
Comments
TensorFlow considers arrays that have a number of dimensions equal to 0 as scalars, so something like |
but if that
i got the
|
There was an issue previously with scalars like that, but it should work with the latest release. |
the version is that?
|
No, 1.13.1-1.5, see: http://bytedeco.org/download/ |
upgrade it and works well.. |
…dy `long... shape` (issue bytedeco/javacpp#301)
I've added a couple more overloads for Tensor scalar = Tensor.create(new float[] {42});
Tensor vector = Tensor.create(new float[] {0, 1}, 2); |
in tensorflow javacpp..
the placeholder was define by
in java, how to build the tensor?
i have try like this
but occur the error when session run..
i think was the
new TensorShape(new long[]{1})
should not like that, but a scalar shape?but how build it? if use
new TensorShape()
, the data cannot fill into the tensor..dropIndexer.put(0, 0.5f);
will occurArrayIndexOutOfBoundsException exeption
The text was updated successfully, but these errors were encountered: