concat

Hparam that represent concat.

Classes

ConcatTracedHp

Concat hparam that can stitch together input hparams.

class ConcatTracedHp

Bases: TracedHp

Concat hparam that can stitch together input hparams.

property active: int

Return the sum of active values of all hparams.

property active_slice: slice | LongTensor

Return the currently active sorted indices or slice corresponding to the active value.

Example

hp1(max=4, active=2), hp2(max=4, active=4) Then the active indices in the concatenated hp are [0, 1, 4, 5, 6, 7]