Skip to content

Commit 10f83d6

Browse files
yushangdifacebook-github-bot
authored andcommitted
Remove test on FakeProgram reducing size (#6178)
Summary: Pull Request resolved: #6178 Original exported_program outputs an OrderedDict, but now it just outputs an regular python dict. The size does not gets smaller anymore. Reviewed By: lucylq Differential Revision: D64260573 fbshipit-source-id: dc838026c189793e38baf26dae33a0aa4202efe6
1 parent 0b671f3 commit 10f83d6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

exir/program/test/test_fake_program.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,8 @@ 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(
65+
# Fake program uses fake tensors for the state dict. Size should be not be larger.
66+
self.assertLessEqual(
6767
sys.getsizeof(fake_program.state_dict),
6868
sys.getsizeof(exported_program.state_dict),
6969
)

0 commit comments

Comments
 (0)