MCPcopy Create free account
hub / github.com/ChenhongyiYang/QueryDet-PyTorch / forward

Function forward

utils/gradient_checkpoint.py:213–216  ·  view source on GitHub ↗
(input)

Source from the content-addressed store, hash-verified

211
212 def run_function(start, end, functions):
213 def forward(input):
214 for j in range(start, end + 1):
215 input = functions[j](input)
216 return input
217 return forward
218
219 if isinstance(functions, torch.nn.Sequential):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected