8000 fix file seperator paths for windows · pytorch/pytorch@9c5d56c · GitHub
[go: up one dir, main page]

Skip to content

Commit 9c5d56c

Browse files
fix file seperator paths for windows
1 parent 9484469 commit 9c5d56c

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

torch/_dynamo/convert_frame.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -307,9 +307,9 8000 @@ def _convert_frame_assert(
307307
return None
308308
if code.co_name == "<genexpr>" and code.co_filename.endswith(
309309
(
310-
"transformers/file_utils.py",
311-
"transformers/utils/generic.py",
312-
"diffusers/utils/outputs.py",
310+
"transformers/file_utils.py".replace("/", os.sep),
311+
"transformers/utils/generic.py".replace("/", os.sep),
312+
"diffusers/utils/outputs.py".replace("/", os.sep),
313313
)
314314
):
315315
# not needed, but cleans up torchbench error stats

torch/_dynamo/eval_frame.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,9 @@ def revert():
174174
DONT_WRAP_FILES = {
175175
# For tracing into fx modules
176176
inspect.getsourcefile(GraphModule),
177-
join(dirname(dirname(__file__)), "onnx/_internal/fx/dynamo_graph_extractor.py"),
177+
join(
178+
dirname(dirname(__file__)), "onnx/_internal/fx/dynamo_graph_extractor.py"
179+
).replace("/", os.sep),
178180
}
179181

180182

0 commit comments

Comments
 (0)
0