Skip to content

Commit 5a9479a

Browse files
authored
Remove no longer used is_not_dype_exception function
Differential Revision: D70337526 Pull Request resolved: #8780
1 parent a0924f7 commit 5a9479a

File tree

1 file changed

+0
-19
lines changed

1 file changed

+0
-19
lines changed

exir/dialects/edge/spec/gen.py

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -236,25 +236,6 @@ def print_error_msg(unsupported_funcs: List[str]):
236236
print(f)
237237

238238

239-
def is_not_dype_exception(exc: BaseException, dtype_str: str) -> bool:
240-
"""Check if an exception about unsupported dtype."""
241-
242-
# alias dtype means the alias name of dtype str, like "Boolean" is the alias name of "Bool".
243-
# Set default alias_dtype as twice of str(exc) to make sure default alias dtype is not part of str(exc)
244-
alias_dtype = 2 * str(exc)
245-
if dtype_str == "Bool":
246-
alias_dtype = "Boolean"
247-
248-
return not (
249-
("not supported" in str(exc) or "not implemented" in str(exc))
250-
and (
251-
dtype_str in str(exc)
252-
or alias_dtype in str(exc)
253-
or dtype_str.lower() in str(exc)
254-
)
255-
)
256-
257-
258239
class EdgeOpYamlInfo:
259240
def __init__(
260241
self,

0 commit comments

Comments
 (0)