gigl.src.training.v1.lib.base_trainer#

Attributes#

Classes#

BaseTrainer

The Protocol that you need to implement for your trainer to function with Training

Module Contents#

class gigl.src.training.v1.lib.base_trainer.BaseTrainer[source]#

Bases: gigl.src.common.types.model.BaseModelOperationsProtocol

The Protocol that you need to implement for your trainer to function with Training in tabularized mode.

Note: the BaseTrainer class also implements the gigl.src.common.types.model.BaseModelOperationsProtocol which requires the init_model method, and the getter and setter for the model property.

abstract eval(gbml_config_pb_wrapper, device)[source]#
Parameters:
Return type:

gigl.src.common.types.model_eval_metrics.EvalMetricsCollection

abstract setup_for_training()[source]#
Return type:

None

abstract train(gbml_config_pb_wrapper, device, profiler=None)[source]#
Parameters:
Return type:

None

property supports_distributed_training: bool[source]#
Abstractmethod:

Return type:

bool

gigl.src.training.v1.lib.base_trainer.logger[source]#