Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/InternLM/InternLM
/ forward
Method
forward
internlm/model/utils.py:77–80 ·
view source on GitHub ↗
(ctx, input_, parallel_mode, dim)
Source
from the content-addressed store, hash-verified
75
76
@staticmethod
77
def
forward(ctx, input_, parallel_mode, dim):
78
ctx.mode = parallel_mode
79
ctx.dim = dim
80
return
_gather(input_, parallel_mode, dim)
81
82
@staticmethod
83
def
backward(ctx, grad_output):
Callers
nothing calls this directly
Calls
1
_gather
Function · 0.85
Tested by
no test coverage detected