In my convolutional network, when I attempt to concat (function builder.add_elementwise) two convolutional layers (function builder.add_convolutional); one being a deconv layer and the other a conv layer, I get the error Input shapes (height and width dimensions) must be equal for layer: 'upcnv7_concat'.
Is there anyway to check the shapes of each layer within the NeuralNetworkBuilder object?
I solved my error, but the question still stands.
Hi! Have you tried using the graph visualization util (coremltools.models.utils.visualize_spec()) ? It has an option to show the shapes of all the blobs in the graph.
The NeuralNetworkBuilder itself does not currently have shape checking capability. However, as mentioned by @aseemw you can use the graph visualization tools to check the network architecture and shape:
coremltools.models.utils.visualize_spec(builder.spec)
Awesome, thanks guys