Gumbel-Softmax#
Architecture Trainer#
Experiment Runner#
- class archai.supergraph.algos.gumbelsoftmax.gs_exp_runner.GsExperimentRunner(config_filename: str, base_name: str, clean_expdir=False)[source]#
- model_desc_builder() GsModelDescBuilder [source]#
- trainer_class() Type[ArchTrainer] | None [source]#
- finalizers() Finalizers [source]#
Finalizers#
Model Description Builder#
Operators#
- class archai.supergraph.algos.gumbelsoftmax.gs_op.GsOp(op_desc: OpDesc, arch_params: ArchParams | None, affine: bool)[source]#
The output of GsOp is weighted output of all allowed primitives.
- PRIMITIVES = ['max_pool_3x3', 'avg_pool_3x3', 'skip_connect', 'sep_conv_3x3', 'sep_conv_5x5', 'dil_conv_3x3', 'dil_conv_5x5', 'none']#
- forward(x)[source]#
Defines the computation performed at every call.
Should be overridden by all subclasses.
Note
Although the recipe for forward pass needs to be defined within this function, one should call the
Module
instance afterwards instead of this since the former takes care of running the registered hooks while the latter silently ignores them.
- finalize(sampled_weights) Tuple[OpDesc, float | None] [source]#
for trainable op, return final op and its rank
- ops() Iterator[Tuple[Op, float]] [source]#
Return contituent ops, if this op is primitive just return self
- training: bool#