test=develop, fix mnist will segment fault (#18083)

revert-18229-add_multi_gpu_install_check
Jiabin Yang 6 years ago committed by GitHub
parent d9270af931
commit ff59866502
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -78,7 +78,10 @@ def reader_creator(image_filename, label_filename, buffer_size):
buffer_size, rows * cols)).astype('float32')
offset_img += struct.calcsize(fmt_images)
images = images / 255.0 * 2.0 - 1.0
images = images / 255.0
images = images * 2.0
images = images - 1.0
for i in range(buffer_size):
yield images[i, :], int(labels[i])

Loading…
Cancel
Save