Skip to content

Commit e1db3cd

Browse files
committed
[EXAMPLE] Fix example for simulator (apache#40)
1 parent c12691a commit e1db3cd

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

vta/examples/resnet18/pynq/imagenet_predict.py

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -139,11 +139,10 @@ def mark_nop(graph, conv_layer=-1, skip_conv_layer=()):
139139
port = os.environ.get("VTA_PYNQ_RPC_PORT", "9091")
140140
port = int(port)
141141
remote = rpc.connect(host, port)
142-
143-
# Program FPGA, and build runtime if necessary
144-
# Overwrite bitstream with a path to your own if you built it yourself
145-
vta.reconfig_runtime(remote)
146-
vta.program_fpga(remote, bitstream=None)
142+
# Program FPGA, and build runtime if necessary
143+
# Overwrite bitstream with a path to your own if you built it yourself
144+
vta.reconfig_runtime(remote)
145+
vta.program_fpga(remote, bitstream=None)
147146

148147
remote.upload(temp.relpath("graphlib.o"))
149148
lib = remote.load_module("graphlib.o")

0 commit comments

Comments
 (0)