We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ea42fd4 commit a153ff6Copy full SHA for a153ff6
binding/python/tests/test_pt.py
@@ -106,7 +106,7 @@ def test_pt_invalid_tensor_dict_raises_error():
106
def test_pt_save_file_and_load_file_consistency():
107
tensor_dict = create_gpt2_tensors_dict(1)
108
filename = ""
109
- with tempfile.NamedTemporaryFile() as tmp:
+ with tempfile.NamedTemporaryFile(delete=False) as tmp:
110
filename = tmp.name
111
save_file(tensor_dict, filename)
112
loaded_dict = load_file(filename)
0 commit comments