Commit 6a905be5 authored by Tim Dettmers's avatar Tim Dettmers
Browse files

Fixed a bug where gemv_4bit would return a wrongly sized tensor.

parent 0f0390ac
......@@ -1475,6 +1475,9 @@ def gemv_4bit(
absmax += offset
if out is None:
if len(A.shape) == 3:
out = torch.zeros(size=(A.shape[0], A.shape[1], bout), dtype=A.dtype, device=A.device)
else:
out = torch.zeros(size=(A.shape[0], bout), dtype=A.dtype, device=A.device)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment