def testBinarized(): sess = tf.InteractiveSession() result = binarized([-5.5, 4.4, 3.4, -2.3, 1.9]) with sess.as_default(): print(result.eval())