Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
petrex committed Jan 21, 2025
1 parent 460884d commit 88448d2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions torchao/dtypes/uintx/marlin_qqq_tensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ def __tensor_unflatten__(
def get_plain(self):
from torchao.quantization.marlin_qqq import (
unpack_from_marlin_qqq,
) # avoid circular import
)

int_data_expanded, s_group_expanded, s_channel_expanded = (
unpack_from_marlin_qqq(
Expand Down Expand Up @@ -207,7 +207,7 @@ def from_plain(
from torchao.quantization.marlin_qqq import (
const,
pack_to_marlin_qqq,
) # avoid circular import
)

assert isinstance(_layout, MarlinQQQLayout)

Expand Down
4 changes: 2 additions & 2 deletions torchao/dtypes/uintx/marlin_sparse_layout.py
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ def __tensor_unflatten__(
def get_plain(self):
from torchao.sparsity.marlin import (
unpack_from_marlin_24,
) # avoid circular import
)

int_data_expanded, scales_expanded = unpack_from_marlin_24(
self.int_data,
Expand All @@ -220,7 +220,7 @@ def from_plain(
from torchao.sparsity.marlin import (
const,
pack_to_marlin_24,
) # avoid circular import
)

assert isinstance(_layout, MarlinSparseLayout)

Expand Down

0 comments on commit 88448d2

Please sign in to comment.