Fix zip serialization for file > 2GiB for Windows (#40783)

Summary:
`long long == int64_t != long` in MSVC
Pull Request resolved: https://github.com/pytorch/pytorch/pull/40783

Differential Revision: D22328757

Pulled By: ezyang

fbshipit-source-id: bc7301d6b0e7e00ee6d7ca8637e3fce7810b15e2
This commit is contained in:
peter
2020-07-01 08:08:29 -07:00
committed by Facebook GitHub Bot
parent a0569ad8f8
commit c71ec1c717
2 changed files with 1 additions and 4 deletions

View File

@ -714,9 +714,6 @@ class TestSerialization(TestCase, SerializationMixin):
test(io.BytesIO())
# Ensure large zip64 serialization works properly
@unittest.skipIf(IS_WINDOWS,
'<built-in method read of BytesIOContext object at 0x0000022C21F2B468> returned a result'
' with an error set')
def test_serialization_2gb_file(self):
big_model = torch.nn.Conv2d(20000, 3200, kernel_size=3)