Skip to content

Commit d8f0e9c

Browse files
Gasoonjiafacebook-github-bot
authored andcommitted
Remove no longer used is_not_dype_exception function (#8780)
Summary: Remove a unsed function with typo in function name Reviewed By: larryliu0820 Differential Revision: D70337526
1 parent 0ab3499 commit d8f0e9c

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)