MCPcopy
hub / github.com/hpcaitech/ColossalAI / update

Method update

tests/test_optimizer/test_adam_kernel.py:39–40  ·  view source on GitHub ↗
(self, step: int, param: Tensor, grad: Tensor, exp_avg: Tensor, exp_avg_sq: Tensor)

Source from the content-addressed store, hash-verified

37
38 @abstractmethod
39 def update(self, step: int, param: Tensor, grad: Tensor, exp_avg: Tensor, exp_avg_sq: Tensor):
40 pass
41
42
43class TorchAdamKernel(AdamKernel):

Callers 15

check_adam_kernelFunction · 0.45
check_forward_backwardFunction · 0.45
check_forward_backwardFunction · 0.45
check_forward_backwardFunction · 0.45
check_forward_backwardFunction · 0.45
check_forward_backwardFunction · 0.45
check_forward_backwardFunction · 0.45
check_forward_backwardFunction · 0.45
check_forward_backwardFunction · 0.45
check_forward_backwardFunction · 0.45
check_forward_backwardFunction · 0.45
check_forward_backwardFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected