mirror of
https://github.com/pytorch/pytorch.git
synced 2025-11-01 22:14:53 +08:00
Signed-off-by: Edward Z. Yang <ezyang@meta.com> Pull Request resolved: https://github.com/pytorch/pytorch/pull/106052 Approved by: https://github.com/albanD, https://github.com/Skylion007
18 lines
436 B
Python
18 lines
436 B
Python
import sys
|
|
|
|
log_file_path = sys.argv[1]
|
|
|
|
with open(log_file_path) as f:
|
|
lines = f.readlines()
|
|
|
|
for line in lines:
|
|
# Ignore errors from CPU instruction set, symbol existing testing,
|
|
# or compilation error formatting
|
|
ignored_keywords = [
|
|
"src.c",
|
|
"CheckSymbolExists.c",
|
|
"test_compilation_error_formatting",
|
|
]
|
|
if all(keyword not in line for keyword in ignored_keywords):
|
|
print(line)
|