Skip to content

Commit

Permalink
[FIX] Update rasp benchmark example (dmlc#225)
Browse files Browse the repository at this point in the history
  • Loading branch information
ZihengJiang authored Nov 6, 2017
1 parent 0d1e861 commit 1ee092a
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions examples/benchmark/rasp_imagenet_bench.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ def main():
args = parser.parse_args()

opt_level = args.opt_level
target = "llvm -target=armv7l-none-linux-gnueabihf -mcpu=cortex-a53 -mattr=+neon"

num_iter = args.num_iter
batch_size = 1
Expand All @@ -43,9 +42,8 @@ def main():


with nnvm.compiler.build_config(opt_level=opt_level):
with tvm.target.rasp():
graph, lib, params = nnvm.compiler.build(
net, target, shape={"data": data_shape}, params=params)
graph, lib, params = nnvm.compiler.build(
net, tvm.target.rasp(), shape={"data": data_shape}, params=params)

tmp = util.tempdir()
lib_fname = tmp.relpath('net.o')
Expand Down

0 comments on commit 1ee092a

Please sign in to comment.