(start, end, functions)
| 210 | raise ValueError("Unexpected keyword arguments: " + ",".join(arg for arg in kwargs)) |
| 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): |
| 220 | functions = list(functions.children()) |
no outgoing calls
no test coverage detected