6. How to use Chainer v2.0.0a1
pip install chainer –-pre
pip install cupy
Documentation: http://docs.chainer.org/en/v2.0.0a1/
CuPy Documentation: http://cupy.docs.chainer.org/
7. Features of v2.0.0a1
• CuPy is separated into an independent package
• Unified configuration / training mode
• Removed deprecated/obsolete APIs
• Interface improvements
8. CuPy is separated
• CuPy is now a separate project!
• https://github.com/cupy/cupy
• At the moment, the development of CuPy is still taking place
at Chainer v1
• Changes are merged to cupy/cupy after each minor release
• In the future, any changes that break compatibilities will be made in
the cupy repository
9. Unified configuration
Thread-local-like object to configure Chainer
• chainer.config: thread-local configuration
• chainer.global_config: process-wide configuration
• Users usually only have to touch chainer.config.
11. Training mode
• All functions/classes that have training/test mode
distinctions now use chainer.config.train flag
• Evaluator automatically switches the flag
→ No need to pass train/test flags manually anymore!
13. Removed/modified APIs
• Array-creation functions in chainer.cuda module
• FunctionSet
• wscale option of links and scale option of init_weight
(specify weight initializers instead)
• force_tuple option of F.split_axis is now set to True by
default
• Some minor updates
14. Major features planned for beta and final releases
• Optimizer with UpdateRule
Can specify hyperparameters for each parameter (e.g. learning rate,
hook functions)
• Uninitialized variable
Used to implement the parameter-shape placeholder
• Remove volatile flag
Use chainer.config.enable_backprop flag instead
• PyCharm-friendly Link/Chain APIs