spaceToBatchND_ has non-actionable error message
See original GitHub issueI am trying my first model with dilated convolutions. tfjs-converter worked without complaints, but when trying to run the model I get:
Error: input spatial dimensions must be divisible by blockShapes
looking at the code around it is unclear what action should be taken to fix the problem.
It would be useful to have the error message report the actual values in place, e.g:
Error: input spatial dimensions ${dimensions} must be divisible by blockShapes ${blockShapes}
and suggest what should be changed to have it fixed.
Issue Analytics
- State:
- Created 5 years ago
- Comments:10 (5 by maintainers)
Top Results From Across the Web
SpaceToBatchND / BatchToSpaceND Documentation Error
I think there is an error in the documentation for SpaceToBatchND and BatchToSpaceND. (The op itself seems to be working fine.)
Read more >SpaceToBatchNd | JVM - TensorFlow
Public Methods. Returns the symbolic handle of the tensor. Factory method to create a class wrapping a new SpaceToBatchNd operation.
Read more >Tensorflow.js tf.spaceToBatchND() Function - GeeksforGeeks
The tf.spaceToBatchND() function is used to split the spatial dimensions of the specified input space into a matrix of blocks having shape of ......
Read more >1 dimenstional convolution error in using tensorflow
It's expecting your input tensor to be "Rank 4" meaning it has 4 dimensions, but you've technically given a 2d array.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@stefano-1981 yup
I changed the error messages to be more elaborate and included the paddings in the assertion
Can it be that the failing line
return a && (b % blockShape[i - 1] === 0);
should also account for the paddings as mentioned in the comments of the function?