def assertAlmostEqual(self, t1, t2):
    self.assertEqual(t1.size(), t2.size(), 'size mismatch')
    self.assertLess(utils.item((t1 - t2).abs().max()), 0.0001)
def assertAlmostEqual(self, t1, t2):
    self.assertEqual(t1.size(), t2.size(), 'size mismatch')
    self.assertLess(utils.item((t1 - t2).abs().max()), 0.0001)