mirror of
https://github.com/sunnypilot/sunnypilot.git
synced 2026-02-19 11:13:53 +08:00
1024 MB should be enough for anyone
This commit is contained in:
@@ -41,10 +41,9 @@ if __name__ == "__main__":
|
||||
# limit gram alloc
|
||||
gpus = tf.config.experimental.list_physical_devices('GPU')
|
||||
if len(gpus) > 0:
|
||||
tf.config.experimental.set_virtual_device_configuration(gpus[0], [tf.config.experimental.VirtualDeviceConfiguration(memory_limit=2048)])
|
||||
tf.config.experimental.set_virtual_device_configuration(gpus[0], [tf.config.experimental.VirtualDeviceConfiguration(memory_limit=1024)])
|
||||
|
||||
m = load_model(sys.argv[1])
|
||||
print(m, file=sys.stderr)
|
||||
|
||||
run_loop(m)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user