def testSumOfSquare(self):
    a = tf.constant(np.array([1.0, 2.0]))
    expected = 5.0
    with self.session() as sess:
        a_sum_of_square = sess.run(transform.sum_of_square(a))
    self.assertEqual(a_sum_of_square, expected)
def testSumOfSquare(self):
    a = tf.constant(np.array([1.0, 2.0]))
    expected = 5.0
    with self.session() as sess:
        a_sum_of_square = sess.run(transform.sum_of_square(a))
    self.assertEqual(a_sum_of_square, expected)