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 61f431b commit c1a3c65Copy full SHA for c1a3c65
torch_np/_ndarray.py
@@ -50,7 +50,7 @@ def __getattr__(self, attr: str):
50
if attr.islower() and attr.upper() in FLAGS:
51
return self[attr.upper()]
52
else:
53
- raise AttributeError(f"No flag '{attr}'")
+ raise AttributeError(f"No flag attribute '{attr}'")
54
55
def __getitem__(self, key):
56
if key in SHORTHAND_TO_FLAGS.keys():
@@ -61,7 +61,7 @@ def __getitem__(self, key):
61
except KeyError as e:
62
raise NotImplementedError(f"{key=}") from e
63
64
- raise KeyError(f"No flag '{key}'")
+ raise KeyError(f"No flag key '{key}'")
65
66
67
##################### ndarray class ###########################
0 commit comments