Open
Description
I'm now updating the issue after a bit of debugging.
This is the problem while training:
Traceback (most recent call last):
File "src/models/main.py", line 90, in <module>
main(args)
File "src/models/main.py", line 62, in main
evpi(word_embeddings, vocab_size, word_emb_dim, freeze, args, train, test)
File "/home/usaxena/work/rcq/ranking_clarification_questions/src/models/evpi.py", line 273, in evpi
validate(train_fn, 'TRAIN', epoch, train, args)
File "/home/usaxena/work/rcq/ranking_clarification_questions/src/models/evpi.py", line 206, in validate
out = val_fn(p, pm, q, qm, a, am, l)
File "/home/usaxena/anaconda3/envs/rcq/lib/python2.7/site-packages/theano/compile/function_module.py", line 618, in __call__
storage_map=self.fn.storage_map)
File "/home/usaxena/anaconda3/envs/rcq/lib/python2.7/site-packages/theano/gof/link.py", line 297, in raise_with_op
reraise(exc_type, exc_value, exc_trace)
File "/home/usaxena/anaconda3/envs/rcq/lib/python2.7/site-packages/theano/compile/function_module.py", line 607, in __call__
outputs = self.fn()
ValueError: Input dimension mis-match. (input[1].shape[1] = 128, input[2].shape[1] = 1)
Apply node that caused the error: Elemwise{Composite{((i0 * i1 * i2) + (i0 * i3 * i4))}}(TensorConstant{(1, 1) of -1.0}, InplaceDimShuffle{x,0}.0, HostFromGpu.0, Elemwise{sub,no_inplace}.0, HostFromGpu.0)
Toposort index: 8029
Inputs types: [TensorType(float64, (True, True)), TensorType(int32, row), TensorType(float32, matrix), TensorType(float64, row), TensorType(float32, matrix)]
Inputs shapes: [(1, 1), (1, 128), (128, 1), (1, 128), (128, 1)]
Inputs strides: [(8, 8), (5120, 40), (4, 4), (1024, 8), (4, 4)]
Inputs values: [array([[-1.]]), 'not shown', 'not shown', 'not shown', 'not shown']
Outputs clients: [[Sum{acc_dtype=float64}(Elemwise{Composite{((i0 * i1 * i2) + (i0 * i3 * i4))}}.0)]]
This is the error while training and is the root cause of my previous issue reported.
Metadata
Metadata
Assignees
Labels
No labels