

def test_read_image_float(self):
    rval = mnist.read_mnist_images(self.train_images_path, 'float32')
    assert_equal(rval, (self.train_features_mock.astype('float32') / 255.0))
    assert_equal(str(rval.dtype), 'float32')

dataset/ETHPy150Open mila-udem/fuel/tests/test_converters.py TestMNIST.test_read_image_float/original