forked from dusty-nv/jetson-containers
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.py
20 lines (17 loc) · 778 Bytes
/
config.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
from jetson_containers import PYTHON_VERSION, JETPACK_VERSION
from packaging.version import Version
if JETPACK_VERSION >= Version('6.1'):
TORCH_TRT_VERSION = 'lluo/jp6.1' #'v2.4.0'
JETPACK_MINOR_VER = JETPACK_VERSION.minor
elif JETPACK_VERSION.major >= 5:
TORCH_TRT_VERSION = 'v1.4.0' # build setup has changed > 1.4.0 (still ironing it out on aarch64)
JETPACK_MINOR_VER = 0
else:
TORCH_TRT_VERSION = 'v1.0.0' # compatability with PyTorch 2.4, CUDA 12.4, TensorRT 10.1, Python 3.12
JETPACK_MINOR_VER = 6
package['build_args'] = {
'PYTHON_VERSION': PYTHON_VERSION,
'JETPACK_MAJOR': JETPACK_VERSION.major,
'JETPACK_MINOR': JETPACK_MINOR_VER, # only 6.0, 6.1, 5.0 and 4.6 are recognized
'TORCH_TRT_VERSION': TORCH_TRT_VERSION,
}