def hex_digest(x):
 assert isinstance(x, np.ndarray)
 rval = hashlib.md5(x.tostring()).hexdigest()
 rval = (((rval + '|strides=[') + ','.join((str(stride) for stride in x.strides))) + ']')
 rval = (((rval + '|shape=[') + ','.join((str(s) for s in x.shape))) + ']')
 return rval

def hex_digest ( x ) : assert isinstance ( x , np . ndarray ) rval = hashlib . md5 ( x . tostring ( ) ) . hexdigest ( ) rval = ( ( ( rval + '|strides=[' ) + ',' . join ( ( str ( stride ) for stride in x . strides ) ) ) + ']' ) rval = ( ( ( rval + '|shape=[' ) + ',' . join ( ( str ( s ) for s in x . shape ) ) ) + ']' ) return rval
returns a short .