Invalid size error while performing backward in vanilla AlexNet architecture with FCN

The following link help me to get the exact error and now I am able to fix.

gdb python
catch throw
run <script name>
backtrace

Thanks.