Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

different shape tensors #40

Open
shook-k opened this issue May 17, 2021 · 0 comments
Open

different shape tensors #40

shook-k opened this issue May 17, 2021 · 0 comments

Comments

@shook-k
Copy link

shook-k commented May 17, 2021

Hi,
I have tried to run:
KERAS_BACKEND=theano python scripts/run.py train
but I get bellow error, could you plz advice?
thanks,

Traceback (most recent call last):
File "scripts/run.py", line 230, in
main(sys.argv)
File "scripts/run.py", line 228, in main
return d.subcmdfn(d)
File "scripts/run.py", line 186, in run
import training;training.train(d)
File "/Users/shokoohkhandan/mygitcode/deep_complex_networks/scripts/training.py", line 609, in train
model = getResnetModel(d)
File "/Users/shokoohkhandan/mygitcode/deep_complex_networks/scripts/training.py", line 215, in getResnetModel
O = getResidualBlock(O, filsize, [sf2, sf2], 3, str(i+1), 'regular', convArgs, bnArgs, d)
File "/Users/shokoohkhandan/mygitcode/deep_complex_networks/scripts/training.py", line 110, in getResidualBlock
O = Add()([O, I])
File "/Users/shokoohkhandan/anaconda3/envs/complex/lib/python2.7/site-packages/keras/engine/topology.py", line 592, in call
self.build(input_shapes)
File "/Users/shokoohkhandan/anaconda3/envs/complex/lib/python2.7/site-packages/keras/layers/merge.py", line 90, in build
output_shape = self._compute_elemwise_op_output_shape(output_shape, shape)
File "/Users/shokoohkhandan/anaconda3/envs/complex/lib/python2.7/site-packages/keras/layers/merge.py", line 61, in _compute_elemwise_op_output_shape
str(shape1) + ' ' + str(shape2))
ValueError: Operands could not be broadcast together with shapes (32, 16, 44) (32, 16, 22)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant