mirror of
https://github.com/pytorch/pytorch.git
synced 2025-10-20 21:14:14 +08:00
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:
committed by
Facebook GitHub Bot
parent
a0569ad8f8
commit
c71ec1c717
@ -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)
|
||||
|
||||
|
Reference in New Issue
Block a user