|
|
@ -50,9 +50,9 @@ def tg_compile(flags, model_name): |
|
|
|
# Compile small models |
|
|
|
# Compile small models |
|
|
|
for model_name in ['driving_vision', 'driving_policy', 'dmonitoring_model']: |
|
|
|
for model_name in ['driving_vision', 'driving_policy', 'dmonitoring_model']: |
|
|
|
flags = { |
|
|
|
flags = { |
|
|
|
'larch64': 'QCOM=1', |
|
|
|
'larch64': 'DEV=QCOM', |
|
|
|
'Darwin': 'CPU=1 IMAGE=0 JIT=2', |
|
|
|
'Darwin': 'DEV=CPU IMAGE=0 JIT=2', |
|
|
|
}.get(arch, 'LLVM=1 LLVMOPT=1 BEAM=0 IMAGE=0 JIT=2') |
|
|
|
}.get(arch, 'DEV=LLVM=1 LLVMOPT=1 BEAM=0 IMAGE=0 JIT=2') |
|
|
|
tg_compile(flags, model_name) |
|
|
|
tg_compile(flags, model_name) |
|
|
|
|
|
|
|
|
|
|
|
# Compile BIG model if USB GPU is available |
|
|
|
# Compile BIG model if USB GPU is available |
|
|
|