Skip to content

Commit 97f237e

Browse files
committed
add docstring
Signed-off-by: Kyle Sayers <[email protected]>
1 parent d1b4f83 commit 97f237e

File tree

1 file changed

+8
-0
lines changed
  • src/compressed_tensors/transform/utils

1 file changed

+8
-0
lines changed

src/compressed_tensors/transform/utils/matrix.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,14 @@ def apply_transform_weight(
5959
location: TransformLocation,
6060
module_type: type[torch.nn.Module],
6161
) -> torch.Tensor:
62+
"""
63+
:param weight: transform weight to apply
64+
:param value: value to apply weight to
65+
:param location: determines how weight should be applied
66+
:param model_type: result of type(module), passed in to determine application of
67+
weight transform
68+
:return: value after weight has been applied
69+
"""
6270
fn, axis = _get_transform_method(module_type, location)
6371

6472
assert weight.shape[0] == weight.shape[1]

0 commit comments

Comments
 (0)