MCPcopy Create free account
hub / github.com/OpenGVLab/HumanBench / run_function

Function run_function

PATH/core/utils.py:711–716  ·  view source on GitHub ↗
(start, end, functions)

Source from the content-addressed store, hash-verified

709 raise ValueError("Unexpected keyword arguments: " + ",".join(arg for arg in kwargs))
710
711 def run_function(start, end, functions):
712 def forward(input):
713 for j in range(start, end + 1):
714 input = functions[j](input)
715 return input
716 return forward
717
718 if isinstance(functions, torch.nn.Sequential):
719 functions = list(functions.children())

Callers 2

forwardMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected