Skip to content

Commit 107b3a9

Browse files
committed
fixing experimental CI
Summary: Test Plan: Reviewers: Subscribers: Tasks: Tags:
1 parent 680e59d commit 107b3a9

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

torchao/dtypes/uintx/packed_linear_int8_dynamic_activation_intx_weight_layout.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -359,8 +359,6 @@ def _impl_2d_aten(input_tensor, weight_tensor):
359359

360360
m, k = input_tensor.shape
361361
n, k_ = weight_tensor.shape
362-
if m==0: # handling for empty input
363-
return input_tensor
364362

365363
assert k_ == k
366364
group_size = weight_tensor.tensor_impl.get_layout().group_size
@@ -369,6 +367,9 @@ def _impl_2d_aten(input_tensor, weight_tensor):
369367
input_tensor, packed_weight, group_size, k, n
370368
)
371369

370+
if input_tensor.numel() == 0:
371+
return input_tensor
372+
372373
target = weight_tensor.tensor_impl.get_layout().target
373374

374375
if weight_tensor.tensor_impl.get_layout().has_bias:

0 commit comments

Comments
 (0)