MCPcopy Create free account
hub / github.com/Mattdl/ContinualPrototypeEvolution / compute_offsets

Function compute_offsets

model/gem.py:16–23  ·  view source on GitHub ↗

Compute offsets for cifar to determine which outputs to select for a given task.

(task, nc_per_task)

Source from the content-addressed store, hash-verified

14
15# Auxiliary functions useful for GEM's inner optimization.
16def 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
26def store_grad(pp, grads, grad_dims, tid):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected