Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 7 additions & 2 deletions backends/arm/tosa_mapping.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,8 +102,6 @@ def __process_number(self, argument: float | int):
def __init__(
self, argument: Any, tosa_spec: Optional[TosaSpecification] = None
) -> None:
if argument is None:
return
if tosa_spec is None:
raise ValueError("tosa_spec is None")
elif not isinstance(tosa_spec, TosaSpecification):
Expand All @@ -125,6 +123,13 @@ def __init__(
# Dtype is parsed from fake tensor
return

if argument is None:
self.name = ""
self.dtype = None
self.shape = None
self.dim_order = None
return

raise RuntimeError(
f"Unhandled node input argument: {argument}, of type {type(argument)}"
)
Expand Down
Loading