(a, t, x_shape)
| 29 | |
| 30 | |
| 31 | def extract_into_tensor(a, t, x_shape): |
| 32 | b, *_ = t.shape |
| 33 | out = a.gather(-1, t) |
| 34 | return out.reshape(b, *((1,) * (len(x_shape) - 1))) |
| 35 | |
| 36 | |
| 37 | def mixed_checkpoint(func, inputs: dict, params, flag): |
nothing calls this directly
no outgoing calls
no test coverage detected