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

Method forward

models/12B-V2/modeling_telechat.py:299–301  ·  view source on GitHub ↗
(ctx, input: torch.Tensor)

Source from the content-addressed store, hash-verified

297class GeLUFunction(torch.autograd.Function):
298 @staticmethod
299 def forward(ctx, input: torch.Tensor) -> torch.Tensor:
300 ctx.save_for_backward(input)
301 return telechat_gelu_forward(input)
302
303 @staticmethod
304 def backward(ctx, grad_output: torch.Tensor) -> torch.Tensor:

Callers

nothing calls this directly

Calls 1

telechat_gelu_forwardFunction · 0.70

Tested by

no test coverage detected