File tree Expand file tree Collapse file tree 1 file changed +0
-2
lines changed
neural_structured_learning/lib Expand file tree Collapse file tree 1 file changed +0
-2
lines changed Original file line number Diff line number Diff line change @@ -78,7 +78,6 @@ def testVirtualAdvRegularizer(self):
7878
7979 actual_loss = self .evaluate (vadv_loss )
8080
81- # For detail derivation of the Hessian matrix, see go/vadv-tests-hessian
8281 hessian = 2 * np .dot (np_weights , np_weights .T )
8382 approx = np .matmul (np_seed , hessian )
8483 approx *= step_size / np .linalg .norm (approx , axis = - 1 , keepdims = True )
@@ -108,7 +107,6 @@ def testVirtualAdvRegularizerMultiStepApproximation(self):
108107
109108 actual_loss = self .evaluate (vadv_loss )
110109
111- # For detail derivation of the Hessian matrix, see go/vadv-tests-hessian
112110 x = np_input
113111 hessian = np .dot (x , x .T ) * np .identity (2 ) - np .dot (x .T , x )
114112 hessian /= np .linalg .norm (x )** 4
You can’t perform that action at this time.
0 commit comments