Say I passed b1 through my net like this:
y1 = my_net(b1)
Then, I immediately pass another batch to get a different output, like this:
y2=my_net(b2)
Does that create two graphs?
I’m computing something based on previous two results and then doing backprop
some_function(y1, y2).backward()
Is this ‘safe’?