from xchainer._core import *  # NOQA

_global_context = Context()
_global_context.get_backend('native')
set_global_default_context(_global_context)

from xchainer._core import *  # NOQA

_global_context = Context()
set_global_default_context(_global_context)
set_default_device('native')

Set the default device to native in Python binding
Set the default device to native in Python binding

  from xchainer._core import *  # NOQA
  
  _global_context = Context()
- _global_context.get_backend('native')
  set_global_default_context(_global_context)
+ set_default_device('native')
  
Set the default device to native in Python binding
## Code Before:
from xchainer._core import *  # NOQA

_global_context = Context()
_global_context.get_backend('native')
set_global_default_context(_global_context)

## Instruction:
Set the default device to native in Python binding
## Code After:
from xchainer._core import *  # NOQA

_global_context = Context()
set_global_default_context(_global_context)
set_default_device('native')
