Skip to content

Commit 088c6c6

Browse files
yushangdifacebook-github-bot
authored andcommitted
Remove test on FakeProgram reducing size
Summary: Original exported_program outputs an OrderedDict, but now it just outputs an regular python dict. The size does not gets smaller anymore. Differential Revision: D64260573
1 parent e95aa9d commit 088c6c6

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

exir/program/test/test_fake_program.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -62,12 +62,6 @@ def test_fake_program(self) -> None:
6262
self.assertEqual(exported_program.verifier, fake_program.verifier)
6363
self.assertEqual(id(exported_program.verifier), id(fake_program.verifier))
6464

65-
# Fake program uses fake tensors for the state dict. Size should be smaller.
66-
self.assertLess(
67-
sys.getsizeof(fake_program.state_dict),
68-
sys.getsizeof(exported_program.state_dict),
69-
)
70-
7165
# Do not copy constants.
7266
self.assertEqual(exported_program.constants, fake_program.constants)
7367
self.assertEqual(id(exported_program.constants), id(fake_program.constants))

0 commit comments

Comments
 (0)