Snapshot¶
此模块包含io::snapshot类及其方法。
示例用法:
from singa import snapshot
sn1 = snapshot.Snapshot('param', False)
params = sn1.read() # read all params as a dictionary
sn2 = snapshot.Snapshot('param_new', False)
for k, v in params.iteritems():
sn2.write(k, v)