gigl.src.validation_check.libs.resource_config_checks#
Attributes#
Functions#
Validates that storage_command is set when graph store mode is enabled for inferencer. |
|
|
Check if SharedResourceConfig specification is valid: |
Validates that storage_command is set when graph store mode is enabled for trainer. |
|
|
Module Contents#
- gigl.src.validation_check.libs.resource_config_checks.check_if_inferencer_graph_store_storage_command_valid(gbml_config_pb_wrapper)[source]#
Validates that storage_command is set when graph store mode is enabled for inferencer.
- Parameters:
gbml_config_pb_wrapper (gigl.src.common.types.pb_wrappers.gbml_config.GbmlConfigPbWrapper) – The GbmlConfig wrapper to check.
- Raises:
AssertionError – If graph store mode is enabled but storage_command is missing.
- Return type:
None
- gigl.src.validation_check.libs.resource_config_checks.check_if_inferencer_resource_config_valid(resource_config_pb)[source]#
- Parameters:
resource_config_pb (snapchat.research.gbml.gigl_resource_config_pb2.GiglResourceConfig)
- Return type:
None
- gigl.src.validation_check.libs.resource_config_checks.check_if_preprocessor_resource_config_valid(resource_config_pb)[source]#
- Parameters:
resource_config_pb (snapchat.research.gbml.gigl_resource_config_pb2.GiglResourceConfig)
- Return type:
None
- Check if SharedResourceConfig specification is valid:
SharedResourceConfig or a SharedResourceConfig uri must be accessible in the resource config.
CommonComputeConfig must have appropriate fields defined.
- Parameters:
resource_config_pb (gigl_resource_config_pb2.GiglResourceConfig) – The resource config to be checked.
- Returns:
None
- Return type:
None
- gigl.src.validation_check.libs.resource_config_checks.check_if_split_generator_resource_config_valid(resource_config_pb)[source]#
- Parameters:
resource_config_pb (snapchat.research.gbml.gigl_resource_config_pb2.GiglResourceConfig)
- Return type:
None
- gigl.src.validation_check.libs.resource_config_checks.check_if_subgraph_sampler_resource_config_valid(resource_config_pb)[source]#
- Parameters:
resource_config_pb (snapchat.research.gbml.gigl_resource_config_pb2.GiglResourceConfig)
- Return type:
None
- gigl.src.validation_check.libs.resource_config_checks.check_if_trainer_graph_store_storage_command_valid(gbml_config_pb_wrapper)[source]#
Validates that storage_command is set when graph store mode is enabled for trainer.
- Parameters:
gbml_config_pb_wrapper (gigl.src.common.types.pb_wrappers.gbml_config.GbmlConfigPbWrapper) – The GbmlConfig wrapper to check.
- Raises:
AssertionError – If graph store mode is enabled but storage_command is missing.
- Return type:
None
- gigl.src.validation_check.libs.resource_config_checks.check_if_trainer_resource_config_valid(resource_config_pb)[source]#
- Parameters:
resource_config_pb (snapchat.research.gbml.gigl_resource_config_pb2.GiglResourceConfig)
- Return type:
None