question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

spaceToBatchND_ has non-actionable error message

See original GitHub issue

I 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:closed
  • Created 5 years ago
  • Comments:10 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
dikatokcommented, Aug 22, 2018

@stefano-1981 yup

I changed the error messages to be more elaborate and included the paddings in the assertion

1reaction
stefano-1981commented, Aug 22, 2018

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?

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found