Skip to content

Commit d1b4f83

Browse files
committed
rename function
Signed-off-by: Kyle Sayers <[email protected]>
1 parent 7334234 commit d1b4f83

File tree

1 file changed

+2
-2
lines changed
  • src/compressed_tensors/transform/utils

1 file changed

+2
-2
lines changed

src/compressed_tensors/transform/utils/matrix.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ def apply_transform_weight(
5959
location: TransformLocation,
6060
module_type: type[torch.nn.Module],
6161
) -> torch.Tensor:
62-
fn, axis = get_linear_transform_fn(module_type, location)
62+
fn, axis = _get_transform_method(module_type, location)
6363

6464
assert weight.shape[0] == weight.shape[1]
6565
head_dim = weight.shape[0]
@@ -72,7 +72,7 @@ def apply_transform_weight(
7272
return value
7373

7474

75-
def get_linear_transform_fn(
75+
def _get_transform_method(
7676
module_type: type[torch.nn.Module],
7777
location: TransformLocation,
7878
) -> Tuple[Callable[[torch.Tensor, torch.Tensor], torch.Tensor], int]:

0 commit comments

Comments
 (0)