def write(path, matrix):
    with open(path, 'wb') as f:
        f.write(matrix.astype(np.float32).tostring())
    return matrix
def write(path, matrix):
    with open(path, 'wb') as f:
        f.write(matrix.astype(np.float32).tostring())
    return matrix