Skip to content

Commit 8b6f880

Browse files
committed
fix
1 parent 7243df7 commit 8b6f880

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

.github/scripts/generate-tensorrt-test-matrix.py

+8
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,10 @@
2828
# please update the future tensorRT version you want to test here
2929
TENSORRT_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",
@@ -42,6 +46,10 @@
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",

py/torch_tensorrt/dynamo/conversion/_TRTInterpreter.py

+2-2
Original file line numberDiff line numberDiff 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
"""

0 commit comments

Comments
 (0)