如何打印mxnet数据,并带有数据精度,例如是32位还是8位?float 表示*位?
<NDArray 2x2x480x480 @cpu(0)> 这种看不出来具体精度
已解决,通过’dtype’已检索到
>>> x = mx.nd.zeros((2,3)) >>> x.dtype <type ‘numpy.float32’> >>> y = mx.nd.zeros((2,3), dtype=‘int32’) >>> y.dtype <type ‘numpy.int32’>
如何打印mxnet数据,并带有数据精度,例如是32位还是8位?float 表示*位?
<NDArray 2x2x480x480 @cpu(0)> 这种看不出来具体精度
已解决,通过’dtype’已检索到
>>> x = mx.nd.zeros((2,3)) >>> x.dtype <type ‘numpy.float32’> >>> y = mx.nd.zeros((2,3), dtype=‘int32’) >>> y.dtype <type ‘numpy.int32’>