We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d1b4f83 commit 97f237eCopy full SHA for 97f237e
src/compressed_tensors/transform/utils/matrix.py
@@ -59,6 +59,14 @@ def apply_transform_weight(
59
location: TransformLocation,
60
module_type: type[torch.nn.Module],
61
) -> 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
70
fn, axis = _get_transform_method(module_type, location)
71
72
assert weight.shape[0] == weight.shape[1]
0 commit comments