mirror of
https://github.com/pytorch/pytorch.git
synced 2025-10-21 13:44:15 +08:00
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:
committed by
Facebook Github Bot
parent
c99cdfeb7d
commit
25e261d6d5
@ -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)
|
||||
|
Reference in New Issue
Block a user