Skip to content

Commit c43bfdb

Browse files
Address linting issues
Signed-off-by: Oscar Andersson <[email protected]> Change-Id: Id7f44c539682a55e06564c7b3294988c122c00b3
1 parent 04eca98 commit c43bfdb

File tree

1 file changed

+6
-10
lines changed

1 file changed

+6
-10
lines changed

backends/arm/process_node.py

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,7 @@
1414
from executorch.backends.arm.operators.node_visitor import NodeVisitor
1515
from executorch.backends.arm.tosa_mapping import TosaArg
1616
from executorch.backends.arm.tosa_specification import TosaSpecification
17-
from executorch.backends.arm.tosa_utils import (
18-
get_node_debug_info,
19-
getNodeArgs,
20-
tosa_shape,
21-
)
17+
from executorch.backends.arm.tosa_utils import getNodeArgs, tosa_shape
2218
from torch.export.exported_program import ExportedProgram
2319

2420

@@ -36,7 +32,7 @@ def process_call_function(
3632
output = TosaArg(node)
3733
except ValueError as e:
3834
raise ValueError(
39-
f"Failed processing call_function:\n{get_node_debug_info(node)}"
35+
f"Failed processing call_function: {node.name}. "
4036
"Is the original torch function supported?"
4137
) from e
4238
tosa_graph.currRegion.currBasicBlock.addTensor(
@@ -74,7 +70,7 @@ def process_inputs(
7470
tosa_arg = TosaArg(node)
7571
except ValueError as e:
7672
raise ValueError(
77-
f"Failed processing input placeholder:\n{get_node_debug_info(node)}"
73+
f"Failed processing input placeholder: {node.name}. "
7874
"Is the original torch function supported?"
7975
) from e
8076
input_shape = tosa_arg.shape
@@ -100,7 +96,7 @@ def process_inputs_to_parameters(
10096
tosa_arg = TosaArg(node)
10197
except ValueError as e:
10298
raise ValueError(
103-
f"Failed processing parameter placeholder:\n{get_node_debug_info(node)}"
99+
f"Failed processing parameter placeholder: {node.name}. "
104100
"Is the original torch function supported?"
105101
) from e
106102
parameter_name = edge_program.graph_signature.inputs_to_parameters[tosa_arg.name]
@@ -129,7 +125,7 @@ def process_inputs_to_buffers(
129125
tosa_arg = TosaArg(node)
130126
except ValueError as e:
131127
raise ValueError(
132-
f"Failed processing buffer placeholder:\n{get_node_debug_info(node)}"
128+
f"Failed processing buffer placeholder: {node.name}. "
133129
"Is the original torch function supported?"
134130
) from e
135131
buffer_name = edge_program.graph_signature.inputs_to_buffers[node.name]
@@ -157,7 +153,7 @@ def process_inputs_to_lifted_tensor_constants(
157153
tosa_arg = TosaArg(node)
158154
except ValueError as e:
159155
raise ValueError(
160-
f"Failed processing lifted tensor constant placeholder:\n{get_node_debug_info(node)}"
156+
f"Failed processing lifted tensor constant placeholder: {node.name}. "
161157
"Is the original torch function supported?"
162158
) from e
163159
tensor_name = edge_program.graph_signature.inputs_to_lifted_tensor_constants[

0 commit comments

Comments
 (0)