(start, end, functions)
| 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()) |
no outgoing calls
no test coverage detected