Skip to content

Commit

Permalink
[EXAMPLE] Fix example for simulator (apache#40)
Browse files Browse the repository at this point in the history
  • Loading branch information
tqchen committed Jul 12, 2018
1 parent fb4256c commit 8f7a569
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions vta/examples/resnet18/pynq/imagenet_predict.py
Original file line number Diff line number Diff line change
Expand Up @@ -139,11 +139,10 @@ def mark_nop(graph, conv_layer=-1, skip_conv_layer=()):
port = os.environ.get("VTA_PYNQ_RPC_PORT", "9091")
port = int(port)
remote = rpc.connect(host, port)

# Program FPGA, and build runtime if necessary
# Overwrite bitstream with a path to your own if you built it yourself
vta.reconfig_runtime(remote)
vta.program_fpga(remote, bitstream=None)
# Program FPGA, and build runtime if necessary
# Overwrite bitstream with a path to your own if you built it yourself
vta.reconfig_runtime(remote)
vta.program_fpga(remote, bitstream=None)

remote.upload(temp.relpath("graphlib.o"))
lib = remote.load_module("graphlib.o")
Expand Down

0 comments on commit 8f7a569

Please sign in to comment.