Closed brysgo closed 4 years ago
I'm going to close this because while there was a difference in behavior of the back ends, it was ultimately user error since the length of the paddings did not match the rank of the tensor.
Sorry for the noise, was on the tail end of a lot of sleepless nights.
To get help from the community, we encourage using Stack Overflow and the
tensorflow.js
tag.TensorFlow.js version
2.1.0
Browser version
Node 14.4.0
Describe the problem or feature request
Would expect an empty tensor to get padded like any other, it instead throws an exception. I wrote this as a work around and in my tests while writing this I wrote some tests to expect that tensorflowjs throws an error. Lo-and-behold, when I switched backends, my test failed because tfjs didn't actually throw an error, it behaved exactly as my shim did. So I figured I'd share what I learned in case it is something we want to fix.
Code to reproduce the bug / link to feature request
https://github.com/tensorflow/tfjs/pull/3756