MCPcopy Create free account
hub / github.com/Tele-AI/Telechat / backward

Method backward

models/7B/modeling_telechat.py:304–307  ·  view source on GitHub ↗
(ctx, grad_output: torch.Tensor)

Source from the content-addressed store, hash-verified

302
303 @staticmethod
304 def backward(ctx, grad_output: torch.Tensor) -> torch.Tensor:
305 input = ctx.saved_tensors
306 tmp = telechat_gelu_back(grad_output, input)
307 return tmp
308
309
310class TelechatGelu(nn.Module):

Callers 1

mainFunction · 0.45

Calls 1

telechat_gelu_backFunction · 0.70

Tested by

no test coverage detected