assertEquals is deprecated, use assertEqual instead

Summary: Pull Request resolved: https://github.com/pytorch/pytorch/pull/28335

Differential Revision: D18263456

Pulled By: ngimel

fbshipit-source-id: c0f79071feaa5a4c3c4b20505013bf7c4b5455d5
This commit is contained in:
Xiang Gao
2019-11-05 09:50:46 -08:00
committed by Facebook Github Bot
parent c99cdfeb7d
commit 25e261d6d5

View File

@ -817,9 +817,9 @@ class FunctionalModuleTest(QuantizationTestCase):
def checkQuantized(model):
self.checkNoPrepModules(model)
self.assertEquals(type(model.myadd), torch.nn.quantized.QFunctional)
self.assertEquals(type(model.mycat), torch.nn.quantized.QFunctional)
self.assertEquals(type(model.myadd_relu), torch.nn.quantized.QFunctional)
self.assertEqual(type(model.myadd), torch.nn.quantized.QFunctional)
self.assertEqual(type(model.mycat), torch.nn.quantized.QFunctional)
self.assertEqual(type(model.myadd_relu), torch.nn.quantized.QFunctional)
checkQuantized(model)
self.checkScriptable(model, [(xq, xq)], check_save_load=True)