def test_global_method(self): t = self.t t += 12.34 a = tensor.log(t) self.assertAlmostEqual(tensor.to_numpy(a)[0, 0], math.log(12.34))