chainer.using_config

chainer.using_config(name, value, config=chainer.config)[source]

Context manager to temporarily change the thread-local configuration.

Parameters:
  • name (str) – Name of the configuration to change.
  • value – Temporary value of the configuration entry.
  • config (LocalConfig) – Configuration object. Chainer’s thread-local configuration is used by default.