Skip to content

Commit b3bf6e3

Browse files
author
Ignacio Quintero
committed
Add missing stuff
1 parent b094d96 commit b3bf6e3

File tree

4 files changed

+34
-31
lines changed

4 files changed

+34
-31
lines changed

src/sagemaker/chainer/README.rst

Lines changed: 26 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -631,35 +631,35 @@ This Python version applies to both the Training Job, created by fit, and the En
631631

632632
The Chainer Docker images have the following dependencies installed:
633633

634-
+-----------------------------+-------------+
635-
| Dependencies | chainer 4.0 |
636-
+-----------------------------+-------------+
637-
| chainer | 4.0.0 |
638-
+-----------------------------+-------------+
639-
| chainercv | 0.9.0 |
640-
+-----------------------------+-------------+
641-
| chainermn | 1.2.0 |
642-
+-----------------------------+-------------+
643-
| CUDA (GPU image only) | 9.0 |
644-
+-----------------------------+-------------+
645-
| cupy | 4.0.0 |
646-
+-----------------------------+-------------+
647-
| matplotlib | 2.2.0 |
648-
+-----------------------------+-------------+
649-
| mpi4py | 3.0.0 |
650-
+-----------------------------+-------------+
651-
| numpy | 1.14.3 |
652-
+-----------------------------+-------------+
653-
| opencv-python | 3.4.0.12 |
654-
+-----------------------------+-------------+
655-
| Pillow | 5.1.0 |
656-
+-----------------------------+-------------+
657-
| Python | 2.7 or 3.5 |
658-
+-----------------------------+-------------+
634+
+-----------------------------+-------------+-------------+-------------+
635+
| Dependencies | chainer 4.0 | chainer 4.1 | chainer 5.0 |
636+
+-----------------------------+-------------+-------------+-------------+
637+
| chainer | 4.0.0 | 4.1.0 | 5.0.0 |
638+
+-----------------------------+-------------+-------------+-------------+
639+
| chainercv | 0.9.0 | 0.10.0 | 0.10.0 |
640+
+-----------------------------+-------------+-------------+-------------+
641+
| chainermn | 1.2.0 | 1.3.0 | N/A |
642+
+-----------------------------+-------------+-------------+-------------+
643+
| CUDA (GPU image only) | 9.0 | 9.0 | 9.0 |
644+
+-----------------------------+-------------+-------------+-------------+
645+
| cupy | 4.0.0 | 4.1.0 | 5.0.0 |
646+
+-----------------------------+-------------+-------------+-------------+
647+
| matplotlib | 2.2.0 | 2.2.0 | 2.2.0 |
648+
+-----------------------------+-------------+-------------+-------------+
649+
| mpi4py | 3.0.0 | 3.0.0 | 3.0.0 |
650+
+-----------------------------+-------------+-------------+-------------+
651+
| numpy | 1.14.3 | 1.15.3 | 1.15.4 |
652+
+-----------------------------+-------------+-------------+-------------+
653+
| opencv-python | 3.4.0.12 | 3.4.0.12 | 3.4.0.12 |
654+
+-----------------------------+-------------+-------------+-------------+
655+
| Pillow | 5.1.0 | 5.3.0 | 5.3.0 |
656+
+-----------------------------+-------------+-------------+-------------+
657+
| Python | 2.7 or 3.5 | 2.7 or 3.5 | 2.7 or 3.5 |
658+
+-----------------------------+-------------+-------------+-------------+
659659

660660
The Docker images extend Ubuntu 16.04.
661661

662-
You can select version of Chainer by passing a framework_version keyword arg to the Chainer Estimator constructor.
662+
You must select a version of Chainer by passing a framework_version keyword arg to the Chainer Estimator constructor.
663663
Currently supported versions are listed in the above table. You can also set framework_version to only specify major and
664664
minor version, which will cause your training script to be run on the latest supported patch version of that minor
665665
version.

src/sagemaker/chainer/defaults.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,4 @@
1212
# language governing permissions and limitations under the License.
1313
from __future__ import absolute_import
1414

15-
CHAINER_VERSION = '5.0.0'
15+
CHAINER_VERSION = '4.1.0'

src/sagemaker/chainer/estimator.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,8 @@ class Chainer(Framework):
3535
_process_slots_per_host = "sagemaker_process_slots_per_host"
3636
_additional_mpi_options = "sagemaker_additional_mpi_options"
3737

38+
LATEST_VERSION = '5.0.0'
39+
3840
def __init__(self, entry_point, use_mpi=None, num_processes=None, process_slots_per_host=None,
3941
additional_mpi_options=None, source_dir=None, hyperparameters=None, py_version='py3',
4042
framework_version=None, image_name=None, **kwargs):
@@ -82,7 +84,7 @@ def __init__(self, entry_point, use_mpi=None, num_processes=None, process_slots_
8284
**kwargs: Additional kwargs passed to the :class:`~sagemaker.estimator.Framework` constructor.
8385
"""
8486
if framework_version is None:
85-
logger.warning(empty_framework_version_warning(CHAINER_VERSION, CHAINER_VERSION))
87+
logger.warning(empty_framework_version_warning(CHAINER_VERSION, self.LATEST_VERSION))
8688
self.framework_version = framework_version or CHAINER_VERSION
8789

8890
super(Chainer, self).__init__(entry_point, source_dir, hyperparameters,

tests/conftest.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,8 @@
2020

2121
from sagemaker import Session
2222
from sagemaker.local import LocalSession
23-
from sagemaker.chainer.defaults import CHAINER_VERSION
23+
from sagemaker.chainer import Chainer
24+
from sagemaker.mxnet import MXNet
2425
from sagemaker.pytorch.defaults import PYTORCH_VERSION
2526
from sagemaker.tensorflow.defaults import TF_VERSION
2627

@@ -33,8 +34,8 @@ def pytest_addoption(parser):
3334
parser.addoption('--sagemaker-runtime-config', action='store', default=None)
3435
parser.addoption('--boto-config', action='store', default=None)
3536
parser.addoption('--tf-full-version', action='store', default=TF_VERSION)
36-
parser.addoption('--mxnet-full-version', action='store', default='1.3.0')
37-
parser.addoption('--chainer-full-version', action='store', default=CHAINER_VERSION)
37+
parser.addoption('--mxnet-full-version', action='store', default=MXNet.LATEST_VERSION)
38+
parser.addoption('--chainer-full-version', action='store', default=Chainer.LATEST_VERSION)
3839
parser.addoption('--pytorch-full-version', action='store', default=PYTORCH_VERSION)
3940

4041

0 commit comments

Comments
 (0)