예제 #1
0
 def testL1RegressionLoss(self):
     ftensor1 = tf.constant([1., 2., 3., 4.])
     ftensor2 = tf.constant([5., 6., 7., -8.])
     out = self.Run(functions.l1_regression_loss(ftensor1, ftensor2))
     testing.assert_array_equal(out[0], numpy.array([4., 4., 4., 12.]))
예제 #2
0
 def testL1RegressionLoss(self):
   ftensor1 = tf.constant([1., 2., 3., 4.])
   ftensor2 = tf.constant([5., 6., 7., -8.])
   out = self.Run(functions.l1_regression_loss(ftensor1, ftensor2))
   testing.assert_array_equal(out[0], numpy.array([4., 4., 4., 12.]))