I am using dynamic graphs in order to use conditional computation. Thus, for each image in a batch, the computational graph generated is different, and depends upon the actual value of image. However, when I try to backpropagate through it, I get the following error
"NoneType object has no attribute data "
Apparently, the gradients do not exist, are empty it seems! Is there a way to backpropagate through dynamic graphs? Any help will be very useful.