Skip to content

Commit 12d1d80

Browse files
committed
Fixed style issue
1 parent 2f1df87 commit 12d1d80

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

py/torch_tensorrt/_compile.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -534,4 +534,4 @@ def save(
534534
exp_program = torch.export.export(
535535
module, tuple(arg_inputs), kwargs=kwarg_inputs, strict=False
536536
)
537-
torch.export.save(exp_program, file_path)
537+
torch.export.save(exp_program, file_path)

py/torch_tensorrt/dynamo/conversion/_TRTInterpreter.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -361,7 +361,7 @@ def check_weight_equal(
361361
network_weight = torch.from_numpy(network_weight).cuda()
362362
try:
363363
return sd_weight.shape == network_weight.shape and torch.all(
364-
torch.abs(sd_weight - network_weight) < 0.1
364+
torch.abs(sd_weight - network_weight) < 0.01
365365
)
366366
except Exception:
367367
return torch.all(sd_weight == network_weight)

0 commit comments

Comments
 (0)