def ParameterAsNumpy(param):
 return np.fromstring(param.mat, dtype='float32').reshape(*tuple(param.dimensions))

def ParameterAsNumpy ( param ) : return np . fromstring ( param . mat , dtype = 'float32' ) . reshape ( * tuple ( param . dimensions ) )
converts a serialized parameter string into a numpy array .