You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Your MXNet training script must be a Python 2.7 or 3.5 compatible source file. The MXNet training script must contain a function ``train``, which SageMaker invokes to run training. You can include other functions as well, but it must contain a ``train`` function.
@@ -604,20 +604,23 @@ Using the ``argparse`` library as an example, this part of the code would look s
604
604
605
605
.. code:: python
606
606
607
-
parser =argparse.ArgumentParser()
607
+
importargparse
608
608
609
-
# hyperparameters sent by the client are passed as command-line arguments to the script.
@@ -635,6 +641,9 @@ If you were previously relying on the default save method, here is one you can c
635
641
withopen(os.path.join(model_dir, 'model-shapes.json'), 'w') as f:
636
642
json.dump(signature, f)
637
643
644
+
These changes will make training with MXNet similar to training with Chainer or PyTorch on SageMaker.
645
+
For more information about those experiences, see `"Preparing the Chainer training script" <https://github.com/aws/sagemaker-python-sdk/tree/master/src/sagemaker/chainer#preparing-the-chainer-training-script>`__ and `"Preparing the PyTorch Training Script" <https://github.com/aws/sagemaker-python-sdk/tree/master/src/sagemaker/pytorch#preparing-the-pytorch-training-script>`__.
0 commit comments