update
diff --git a/test/test_legacy_nn.py b/test/test_legacy_nn.py
index 535ba13..5dbf6d8 100644
--- a/test/test_legacy_nn.py
+++ b/test/test_legacy_nn.py
@@ -486,14 +486,14 @@
input_size=(1, 2, 4, 4, 4)),
OldModuleTest(nn.VolumetricMaxPooling,
constructor_args=(2, 2, 2),
- input=(torch.randn(2, 3, 5, 5, 5) * 1000)),
+ input_fn=lambda: (torch.randn(2, 3, 5, 5, 5) * 1000)),
OldModuleTest(nn.VolumetricMaxPooling,
constructor_args=(2, 2, 2, 2, 2, 2),
- input=(torch.randn(2, 3, 5, 5, 5) * 1000),
+ input_fn=lambda: (torch.randn(2, 3, 5, 5, 5) * 1000),
desc='stride'),
OldModuleTest(nn.VolumetricMaxPooling,
constructor_args=(2, 2, 2, 2, 2, 2, 1, 1, 1),
- input=(torch.randn(2, 3, 5, 5, 5) * 1000),
+ input_fn=lambda: (torch.randn(2, 3, 5, 5, 5) * 1000),
desc='stride_padding'),
OldModuleTest(nn.VolumetricReplicationPadding,
constructor_args=(1, 2, 3, 4, 5, 6),