@@ -1467,10 +1467,11 @@ def __init__(
14671467 Args:
14681468 entry_point (str): Path (absolute or relative) to the local Python
14691469 source file which should be executed as the entry point to
1470- training. This should be compatible with either Python 2.7 or
1471- Python 3.5. If 'git_config' is provided, 'entry_point' should be
1470+ training. If ``source_dir`` is specified, then ``entry_point``
1471+ must point to a file located at the root of ``source_dir``.
1472+ If 'git_config' is provided, 'entry_point' should be
14721473 a relative location to the Python source file in the Git repo.
1473- Example
1474+ Example:
14741475
14751476 With the following GitHub repo directory structure:
14761477
@@ -1487,6 +1488,7 @@ def __init__(
14871488 when training on Amazon SageMaker. If 'git_config' is provided,
14881489 'source_dir' should be a relative location to a directory in the Git
14891490 repo.
1491+
14901492 .. admonition:: Example
14911493
14921494 With the following GitHub repo directory structure:
@@ -1968,8 +1970,9 @@ def transformer(
19681970 volume_kms_key (str): Optional. KMS key ID for encrypting the volume
19691971 attached to the ML compute instance (default: None).
19701972 entry_point (str): Path (absolute or relative) to the local Python source file which
1971- should be executed as the entry point to training. If not specified, the training
1972- entry point is used.
1973+ should be executed as the entry point to training. If ``source_dir`` is specified,
1974+ then ``entry_point`` must point to a file located at the root of ``source_dir``.
1975+ If not specified, the training entry point is used.
19731976 vpc_config_override (dict[str, list[str]]): Optional override for
19741977 the VpcConfig set on the model.
19751978 Default: use subnets and security groups from this Estimator.
0 commit comments