all my weights and biases tensors are in net.parameters with device (cuda:0) , but i want to convert those tensors to cpu so that i can use it for inferencing.
prediction snippet…
prediction=network_instance(test)


when we do optimizer.step() does it keep on updating the weights till the prediction is correct or it updates the weights for only a single backward pass.