You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
Linear followed by a view leads to incorrect result, tensorflowjs complains shape mismatch [NULL, output_size]. changing reshape = keras.layers.Reshape([-1], name=tf_name) to match the input shape seems to fix the problem
To Reproduce Snippet of your code
x = x.view(self.batch_size, -1)
self.output = nn.Linear(x.shape[1], output_size)
The text was updated successfully, but these errors were encountered:
Describe the bug
Linear followed by a view leads to incorrect result, tensorflowjs complains shape mismatch [NULL, output_size]. changing
reshape = keras.layers.Reshape([-1], name=tf_name)
to match the input shape seems to fix the problemTo Reproduce
Snippet of your code
The text was updated successfully, but these errors were encountered: