dec-pytorch
dec-pytorch copied to clipboard
get_int
hi,thanks for your contribution, I wonder what function get_int() is.
After looking arround a bit, I found out this is the function you should use
import struct
def get_int(data):
return struct.unpack('>I', data)[0]
It took me some trial and error. But it was easy to find out once I saw some Yann Lecunn MNIST database examples.