Skip to content

Commit 901a262

Browse files
committed
Fixing linting checks
1 parent 65d07fd commit 901a262

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
with open(model_file, "rb") as f:
106105
buf = f.read()
@@ -112,14 +111,16 @@ def _get_kernel_metadata_for_model(model_file: str) -> Dict[str, List[str]]:
112111
KernelCall,
113112
OptionalTensorList,
114113
Tensor,
115-
TensorList
114+
TensorList,
116115
)
116+
117117
def _get_dtypes_from_non_list(evalue: EValue):
118118
kernel_key = ""
119119
if isinstance(evalue, Tensor):
120120
dim_order = ",".join(map(str, evalue.dim_order))
121121
kernel_key += f"{evalue.scalar_type};{dim_order}|"
122122
return kernel_key
123+
123124
model = _deserialize_pte_binary(buf)
124125
for execution_plan in model.execution_plan:
125126
for chain in execution_plan.chains:

0 commit comments

Comments
 (0)