Skip to content

Commit 6e7be89

Browse files
committed
update
1 parent ea1748a commit 6e7be89

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

tests/tests_pytorch/trainer/optimization/test_manual_optimization.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -327,6 +327,9 @@ def __copy__(self):
327327
new_obj = cls(self._store.copy())
328328
return new_obj
329329

330+
def copy(self):
331+
return self.__copy__()
332+
330333

331334
@RunIf(min_cuda_gpus=1)
332335
@pytest.mark.parametrize("dicttype", [dict, CustomMapping])

0 commit comments

Comments
 (0)