Closed tastyminerals closed 7 years ago
I figured it out, it appears that in backward call I wasn't passing the exact same table I was passing for forward.
{
1 :
{
1 : IntTensor - size: 5x32
}
}
instead of
{
1 :
{
1 : IntTensor - size: 5x32
2 : DoubleTensor - size: 5x32x54
}
}
Here is the model I am working with:
The input to this model is a batch table:
I can successfully do forward pass, however when doing backward pass the model crashes with the following error:
The container that crashes is the second
SplitTable
in the firstParallelTable
. I have copied the source files and removednn.
prefix to manually load them and print whatever they receive and send asINPUT
orOUTPUT
to see what is going on. Here is a strange thing:First
ParallelTable
has only oneIntTensor
5x32 for some reason and then lowerSplitTable
hasIntTensor
32 which shouldn't have happenened as thisSplitTable
must haveDoubleTensor 32x54
unless I do not understand howbackward
works in the pipeline.Why doesn't the first
ParallelTable
receive whateverZipTable
outputs?