chainer.get_dtype¶
-
chainer.
get_dtype
(dtype=None)[source]¶ Resolves Chainer’s default dtype.
Returns: If dtype
is notNone
, it returns the dtype normalized bynumpy.dtype()
. Otherwise, it returnschainer.config.dtype
(see Configuring Chainer) normalized as well.