Skip to content

Commit 05056fb

Browse files
committedMar 25, 2025
Fixed the bug of SDXL Cuda Error
1 parent ddc7bc6 commit 05056fb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎py/torch_tensorrt/dynamo/_refit.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ def construct_refit_mapping_from_weight_name_map(
123123
engine_weight_map[engine_weight_name] = (
124124
state_dict[sd_weight_name]
125125
if state_dict[sd_weight_name].device == device
126-
else state_dict[sd_weight_name].to("device")
126+
else state_dict[sd_weight_name].to(device)
127127
)
128128

129129
engine_weight_map[engine_weight_name] = (

0 commit comments

Comments
 (0)
Failed to load comments.