Open SapphireBrand opened 4 years ago
OK, so this code works if I change the line filters = inputs.shape[self._channel_axis].value
to filters = inputs.shape[self._channel_axis]
.
Any idea why I need to make that change? I imagine this code is working as-is for some people, but something about the Colab environment differs?
Is there a change that I can push as a PR?
I copied the code below from the Mixnet model builder code, trying to use it as a "hello world" before adapting the builder to my own problem. This code should build a mixnet_s, IIUC. I am running in a Google Colab notebook, with Tensorflow 2.x
when I execute this code I get the output below. This happens when the network tries to reshape from 112x112x16 to 56x56x24. The error occurs on any layer that uses an "expand" parameter not equal to 1 (so the second "block arg" above is when this fails).
The line of code is pulling the channel dimension from the input shape (which is the integer 16) and then calling for the "value" attribute.
Not sure what I am doing wrong.