You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
To get help from the community, we encourage using Stack Overflow and the tensorflow.js tag.
TensorFlow.js version
0.15.3
Browser version
Firefox 65.0.1
Chrome 72.0.3626.119
Describe the problem or feature request
i may be wrong in my understanding but my expectation is that TensorBuffer.get should return the value at a given index/location. if an out of bound index/location is provided i would expect it to fail. however, that does not appear to be the case. if you provide a location for a given dimension greater than its size tf.TensorBuffer.get may still return a value.
Code to reproduce the bug / link to feature request
comparing tf.TensorBuffer.get and indexing with tf.Tensor.arraySync:
To get help from the community, we encourage using Stack Overflow and the
tensorflow.js
tag.TensorFlow.js version
0.15.3
Browser version
Firefox 65.0.1
Chrome 72.0.3626.119
Describe the problem or feature request
i may be wrong in my understanding but my expectation is that TensorBuffer.get should return the value at a given index/location. if an out of bound index/location is provided i would expect it to fail. however, that does not appear to be the case. if you provide a location for a given dimension greater than its size
tf.TensorBuffer.get
may still return a value.Code to reproduce the bug / link to feature request
comparing
tf.TensorBuffer.get
and indexing withtf.Tensor.arraySync
:b.get(2, 0, 0)
correctly returns undefined. however,b.get(0, 0, 2)
andb.get(0, 2, 0)
incorrectly return a value (for an invalid location).The text was updated successfully, but these errors were encountered: