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 fb493ae commit ffcbcd3Copy full SHA for ffcbcd3
pytorch_optimizer/optimizer/shampoo_utils.py
@@ -333,7 +333,7 @@ def compute_pre_conditioners(self) -> None:
333
def precondition_block(
334
partitioned_grad: torch.Tensor,
335
should_preconditioned_dims: List[bool],
336
- pre_conditioners_for_grad: List[torch.Tensor],
+ pre_conditioners_for_grad: Union[List[torch.Tensor], torch.Tensor],
337
) -> torch.Tensor:
338
r"""Perform a preconditioning operation on a single gradient block.
339
0 commit comments