Skip to content

Commit 749420b

Browse files
committed
update
1 parent 1e1760b commit 749420b

File tree

1 file changed

+1
-3
lines changed
  • src/compressed_tensors/transforms

1 file changed

+1
-3
lines changed

src/compressed_tensors/transforms/base.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,9 +63,7 @@ def __init__(
6363
:param transform: transform (e.g. torch.Tensor, scalar) to be applied
6464
"""
6565
if self.learnable:
66-
self.transform = torch.nn.Parameter(
67-
transform.to(dtype).to(device), requires_grad=False
68-
)
66+
self.transform = torch.nn.Parameter(transform.to(dtype).to(device))
6967
else:
7068
self.transform = torch.nn.Buffer(transform.to(dtype).to(device))
7169

0 commit comments

Comments
 (0)