Skip to content

Commit 9c7ec88

Browse files
committed
cleaning and formatting
1 parent f10be07 commit 9c7ec88

File tree

3 files changed

+5
-7
lines changed

3 files changed

+5
-7
lines changed

evaluation/measure.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -120,9 +120,9 @@ def postprocess(times_in_ns: list[int]) -> list[float]:
120120

121121
return results | (
122122
{
123-
#"tensorflow": postprocess(
124-
# measure_tf(tf_model, inputs, total, tqdm_leave=tqdm_leave)
125-
#),
123+
"tensorflow": postprocess(
124+
measure_tf(tf_model, inputs, total, tqdm_leave=tqdm_leave)
125+
),
126126
"onnxruntime": postprocess(
127127
measure_onnxruntime(model_proto, inputs, total, tqdm_leave=tqdm_leave)
128128
),

evaluation/measure_models.py

+1-3
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
11
import setup # noqa # isort:skip
22

3-
import keras
43
import numpy as np
54
import pandas as pd
6-
from keras import layers
75
import onnx
86
from measure import measure_all
97
from tqdm import tqdm
@@ -23,7 +21,7 @@
2321
"../data/vision/classification/squeezenet/model/squeezenet1.1-7.onnx",
2422
"../data/vision/body_analysis/emotion_ferplus/model/emotion-ferplus-8.onnx",
2523
"../data/vision/classification/inception_and_googlenet/inception_v2/model/inception-v2-7.onnx",
26-
"../data/vision/classification/resnet/model/resnet50-caffe2-v1-9.onnx"
24+
"../data/vision/classification/resnet/model/resnet50-caffe2-v1-9.onnx",
2725
]
2826

2927
for model in tqdm(models):

onnx2code/ops/gemm_tiling/GEMM.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ def set_tiling_params(params: LoopTilingParams) -> None:
4040

4141

4242
def call_GEMM(M: int, K: int, N: int, params: str) -> str:
43-
nc = min(2**math.ceil(math.log2(N)), tiling_params.nc)
43+
nc = min(2 ** math.ceil(math.log2(N)), tiling_params.nc)
4444
kc = tiling_params.kc
4545
mc = tiling_params.mc
4646
mr = tiling_params.mr

0 commit comments

Comments
 (0)