validate_smdistributed: Check if smdistributed strategy is correctly invoked by the...

View source: R/fw_utils.R

validate_smdistributedR Documentation

Check if smdistributed strategy is correctly invoked by the user.

Description

Currently, two strategies are supported: 'dataparallel' or 'modelparallel'. Validate if the user requested strategy is supported. Currently, only one strategy can be specified at a time. Validate if the user has requested more than one strategy simultaneously. Validate if the smdistributed dict arg is syntactically correct. Additionally, perform strategy-specific validations.

Usage

validate_smdistributed(
  instance_type,
  framework_name,
  framework_version,
  py_version,
  distribution,
  image_uri = NULL
)

Arguments

instance_type

(str): A string representing the type of training instance selected.

framework_name

(str): A string representing the name of framework selected.

framework_version

(str): A string representing the framework version selected.

py_version

(str): A string representing the python version selected.

distribution

(dict): A dictionary with information to enable distributed training. (Defaults to None if distributed training is not enabled.)

image_uri

(str): A string representing a Docker image URI.


DyfanJones/sagemaker-r-local documentation built on June 14, 2022, 10:32 p.m.