neuroprob/utils/pytorch.py
def _Hv(self, gradient, vec, damping):
        """
        Computes the Hessian vector product.
        """
        Hv = self._Rop(gradient, self._params, vec)

        # Tikhonov damping (Section 20.8.1)
        return Hv.detach() + damping * vec

        Computes the Hessian vector product.
        
Computes the Hessian vector product.
Computes the Hessian vector product .
def _Hv(self, gradient, vec, damping):
        Hv = self._Rop(gradient, self._params, vec)
        return Hv.detach() + damping * vec
def _Hv ( self , gradient , vec , damping ) : Hv = self . _Rop ( gradient , self . _params , vec ) return Hv . detach ( ) + damping * vec
Computes the Hessian vector product.
Computes the Hessian vector product .
"""
        Computes the Hessian vector product.
        """ # Tikhonov damping (Section 20.8.1)
self
gradient
vec
damping