tensorflow stop_gradient equivalent in pytorch
What is the tf.stop_gradient() equivalent (provides a way to not compute gradient with respect to some variables during back-propagation) in pytorch?

Could you check with x.detach(). 
