Compute offsets for cifar to determine which outputs to select for a given task.
(task, nc_per_task)
| 14 | |
| 15 | # Auxiliary functions useful for GEM's inner optimization. |
| 16 | def compute_offsets(task, nc_per_task): |
| 17 | """ |
| 18 | Compute offsets for cifar to determine which |
| 19 | outputs to select for a given task. |
| 20 | """ |
| 21 | offset1 = 0 |
| 22 | offset2 = nc_per_task |
| 23 | return offset1, offset2 |
| 24 | |
| 25 | |
| 26 | def store_grad(pp, grads, grad_dims, tid): |
nothing calls this directly
no outgoing calls
no test coverage detected