chainer.get_dtype

chainer.get_dtype(dtype=None)[source]

Resolves Chainer’s default dtype.

Returns:If dtype is not None, it returns the dtype normalized by numpy.dtype(). Otherwise, it returns chainer.config.dtype (see Configuring Chainer) normalized as well.