Skip to content

Commit

Permalink
fix compile warning
Browse files Browse the repository at this point in the history
  • Loading branch information
SippieCup committed Apr 18, 2020
1 parent 40498ca commit 6a8e87e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions selfdrive/modeld/runners/keras_runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,9 @@ def run_loop(m,name):
m.load_weights(f"{os.path.splitext(sys.argv[1])}.weights.keras")
else:
tf.config.experimental.set_virtual_device_configuration(gpus[0], [tf.config.experimental.VirtualDeviceConfiguration(memory_limit=256)])
m = load_model(sys.argv[1])
m = load_model(sys.argv[1], compile=False)
else:
m = load_model(sys.argv[1])
m = load_model(sys.argv[1], compile=False)

bs = [int(np.product(ii.shape[1:])) for ii in m.inputs]
ri = keras.layers.Input((sum(bs),))
Expand Down

0 comments on commit 6a8e87e

Please sign in to comment.