def consider_constant(x):
 warnings.warn('consider_constant() is deprecated, use zero_grad() or disconnected_grad() instead.', stacklevel=3)
 return consider_constant_(x)

def consider_constant ( x ) : warnings . warn ( 'consider_constant() is deprecated, use zero_grad() or disconnected_grad() instead.' , stacklevel = 3 ) return consider_constant_ ( x )
deprecated: use zero_grad() or disconnected_grad() instead .