乐趣区

关于python:使用-numpy-的-savezcompressed-存储深度学习模型生成的向量数据

import numpy
from numpy.lib.npyio import NpzFile

numpy.savez_compressed('nn.npz', vectors=[0.11, 0.22])


data: NpzFile = numpy.load('nn.npz')

print(list(data.keys()))

v: numpy.ndarray = data['vectors']

print(v)
print(type(v))
退出移动版