Model parameters are not being updated?

  1. Remember that pytorch is based on dynamic computation graphs, where as tensorflow is based on static computation graphs. Hence, you need to calculate filter in forward() rather than __init__().

  2. You do not need to move individual parameters to cuda. Rather try to move whole model to cuda.

1 Like