Skip to content

Commit 50e1098

Browse files
csferngtensorflow-copybara
authored andcommitted
Revise comments.
PiperOrigin-RevId: 304682953
1 parent f4b302c commit 50e1098

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

neural_structured_learning/lib/regularizer_test.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)