Skip to content

Commit 72db779

Browse files
committed
Fixing linting checks
1 parent 929da9b commit 72db779

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

codegen/tools/gen_oplist.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,7 @@ def _get_operators(model_file: str) -> List[str]:
9090
buf = f.read()
9191

9292
from executorch.exir._serialize import _deserialize_pte_binary
93+
9394
model = _deserialize_pte_binary(buf)
9495
operators = []
9596
for execution_plan in model.execution_plan:
@@ -99,8 +100,6 @@ def _get_operators(model_file: str) -> List[str]:
99100
return operators
100101

101102

102-
103-
104103
def _get_kernel_metadata_for_model(model_file: str) -> Dict[str, List[str]]:
105104
from executorch.codegen.tools.selective_build import ( # type: ignore[import-not-found]
106105
_get_io_metadata_for_program_operators,
@@ -118,14 +117,16 @@ def _get_kernel_metadata_for_model(model_file: str) -> Dict[str, List[str]]:
118117
KernelCall,
119118
OptionalTensorList,
120119
Tensor,
121-
TensorList
120+
TensorList,
122121
)
122+
123123
def _get_dtypes_from_non_list(evalue: EValue):
124124
kernel_key = ""
125125
if isinstance(evalue, Tensor):
126126
dim_order = ",".join(map(str, evalue.dim_order))
127127
kernel_key += f"{evalue.scalar_type};{dim_order}|"
128128
return kernel_key
129+
129130
model = _deserialize_pte_binary(buf)
130131
for execution_plan in model.execution_plan:
131132
for chain in execution_plan.chains:

0 commit comments

Comments
 (0)