mirror of
https://github.com/pytorch/pytorch.git
synced 2025-10-20 21:14:14 +08:00
Fix exception causes all over the codebase (#90271)
This is the continuation to #90134 and hopefully the final PR in this series. Pull Request resolved: https://github.com/pytorch/pytorch/pull/90271 Approved by: https://github.com/kit1980
This commit is contained in:
committed by
PyTorch MergeBot
parent
8f079b895b
commit
351d73b97f
@ -137,10 +137,10 @@ def validate_shape_inference_header(
|
||||
with open(shape_inference_hdr, "r") as f:
|
||||
shape_infr_decls = f.read()
|
||||
shape_infr_decl_lines = set(shape_infr_decls.split("\n"))
|
||||
except IOError:
|
||||
except IOError as e:
|
||||
raise AssertionError(
|
||||
f"Unable to read from the specified shape_inference_hdr file: {shape_inference_hdr}"
|
||||
)
|
||||
) from e
|
||||
|
||||
shape_infr_regex = r"compute_shape_(\w+)"
|
||||
actual_shape_infr_name_counts = Counter(
|
||||
|
Reference in New Issue
Block a user