Skip to content

Commit 93a03ed

Browse files
yanbing-jpytorchmergebot
authored andcommitted
Update error message in meta__convert_weight_to_int4pack (pytorch#130707)
This PR is to fix error message in pytorch#129940. Pull Request resolved: pytorch#130707 Approved by: https://github.com/lezcano, https://github.com/malfet
1 parent a3abfa5 commit 93a03ed

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

torch/_meta_registrations.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3256,7 +3256,7 @@ def meta__convert_weight_to_int4pack(w, inner_k_tiles):
32563256
torch._check(w.dim() == 2, lambda: "w must be a 2D tensor")
32573257
torch._check(
32583258
w.dtype is torch.uint8,
3259-
lambda: f"expected w to be int32, got {w.dtype}",
3259+
lambda: f"expected w to be uint8, got {w.dtype}",
32603260
)
32613261
n = w.size(0)
32623262
k = w.size(1)

0 commit comments

Comments
 (0)