File tree Expand file tree Collapse file tree 2 files changed +10
-2
lines changed
py/torch_tensorrt/dynamo/conversion Expand file tree Collapse file tree 2 files changed +10
-2
lines changed Original file line number Diff line number Diff line change 2828# please update the future tensorRT version you want to test here
2929TENSORRT_VERSIONS_DICT = {
3030 "windows" : {
31+ "10.3.0" : {
32+ "urls" : "https://developer.nvidia.com/downloads/compute/machine-learning/tensorrt/10.3.0/zip/TensorRT-10.3.0.26.Windows.win10.cuda-12.5.zip" ,
33+ "strip_prefix" : "TensorRT-10.3.0.26" ,
34+ },
3135 "10.7.0" : {
3236 "urls" : "https://developer.nvidia.com/downloads/compute/machine-learning/tensorrt/10.7.0/zip/TensorRT-10.7.0.23.Windows.win10.cuda-12.6.zip" ,
3337 "strip_prefix" : "TensorRT-10.7.0.23" ,
4246 },
4347 },
4448 "linux" : {
49+ "10.3.0" : {
50+ "urls" : "https://developer.nvidia.com/downloads/compute/machine-learning/tensorrt/10.3.0/tars/TensorRT-10.3.0.26.Linux.x86_64-gnu.cuda-12.5.tar.gz" ,
51+ "strip_prefix" : "TensorRT-10.3.0.26" ,
52+ },
4553 "10.7.0" : {
4654 "urls" : "https://developer.nvidia.com/downloads/compute/machine-learning/tensorrt/10.7.0/tars/TensorRT-10.7.0.23.Linux.x86_64-gnu.cuda-12.6.tar.gz" ,
4755 "strip_prefix" : "TensorRT-10.7.0.23" ,
Original file line number Diff line number Diff line change @@ -425,10 +425,10 @@ def check_weight_equal(
425425 network_weight = torch .from_numpy (network_weight ).to (device )
426426 try :
427427 return sd_weight .shape == network_weight .shape and torch .all (
428- torch .abs (sd_weight - network_weight ) < 0.01
428+ torch .abs (sd_weight . cpu () - network_weight . cpu () ) < 0.01
429429 )
430430 except Exception :
431- return torch .all (sd_weight == network_weight )
431+ return torch .all (sd_weight . cpu () == network_weight . cpu () )
432432
433433 def _save_weight_mapping (self ) -> None :
434434 """
You can’t perform that action at this time.
0 commit comments