Skip to content

Commit e8b9f23

Browse files
committed
* lint error
1 parent 3da412c commit e8b9f23

File tree

3 files changed

+5
-6
lines changed

3 files changed

+5
-6
lines changed

apps/benchmark/adreno/adreno_gpu_bench_texture.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -178,9 +178,10 @@ def evaluate_network(network, target, target_host, dtype, repeat):
178178
net, target=tvm.target.Target(target, host=target_host), params=params
179179
)
180180
else:
181-
print("WARNING: Benchmark running with out tuning cache file - ", tune_log)
182181
with tvm.transform.PassContext(opt_level=3):
183-
lib = relay.build(net, target=tvm.target.Target(target, host=target_host), params=params)
182+
lib = relay.build(
183+
net, target=tvm.target.Target(target, host=target_host), params=params
184+
)
184185

185186
tmp = tempdir()
186187

@@ -208,7 +209,7 @@ def evaluate_network(network, target, target_host, dtype, repeat):
208209
prof_res = np.array(ftimer().results) * 1000 # multiply 1000 for converting to millisecond
209210
print(
210211
"%-20s %-19s (%s)"
211-
% (network+"-"+dtype, "%.2f ms" % np.mean(prof_res), "%.2f ms" % np.std(prof_res))
212+
% (network + "-" + dtype, "%.2f ms" % np.mean(prof_res), "%.2f ms" % np.std(prof_res))
212213
)
213214
return (np.mean(prof_res), np.std(prof_res))
214215

apps/benchmark/adreno/bench.py renamed to apps/benchmark/adreno/bench.sh

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,6 @@
1818

1919
set -euxo pipefail
2020

21-
echo "Bench called"
22-
2321
source tests/scripts/setup-pytest-env.sh
2422
export PYTHONPATH=${PYTHONPATH}:${TVM_PATH}/apps/extension/python
2523
export LD_LIBRARY_PATH="build:${LD_LIBRARY_PATH:-}"

tests/scripts/ci.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -730,7 +730,7 @@ def add_subparser(
730730
"benchmarks": (
731731
"run Adreno Texture Benchmarks",
732732
[
733-
"./apps/benchmark/adreno/bench.py texture "
733+
"./apps/benchmark/adreno/bench.sh texture "
734734
+ os.environ.get("ANDROID_SERIAL", ""),
735735
],
736736
),

0 commit comments

Comments
 (0)