"docs/git@developer.sourcefind.cn:OpenDAS/fairscale.git" did not exist on "c6d9be792928e6f0b23e7e9ae50b7e8ef19da91e"
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,7 +1475,10 @@ def gemv_4bit(
absmax += offset
if out is None:
out = torch.zeros(size=(A.shape[0], bout), dtype=A.dtype, device=A.device)
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