Context

Manage device type and id where computations are carried out

mx.cpu

Create a mxnet CPU context

mx.gpu

Create a mxnet GPU context

ctx

Get the context of mx.ndarray

mx.ctx.default

Set/Get default context for array creation

is.mx.context

Check if the type is mxnet context