Torch7 Serialization
2015-08-19 17:26
465 查看
LINK: https://github.com/torch/torch7/blob/master/doc/serialization.md
Torch provides 4 high-level methods of serialize/deserialize arbitrary Lua/Torch objects. These functions are just abstractions over the File object, and were created for convenience (these are very common routines).
The first two functions are useful to serialize/deserialize data to/from files:
The format can be set to ascii or binary (default is binary).
The next two functions are useful to serialize/deserialize data to/from strings:
Torch provides 4 high-level methods of serialize/deserialize arbitrary Lua/Torch objects. These functions are just abstractions over the File object, and were created for convenience (these are very common routines).
The first two functions are useful to serialize/deserialize data to/from files:
torch.save(filename, object [, format]) [object] torch.load(filename [, format])
The format can be set to ascii or binary (default is binary).
The next two functions are useful to serialize/deserialize data to/from strings:
[str] torch.serialize(object) [object] torch.deserialize(str)
相关文章推荐
- optim package
- Defining your own Neural Net Module
- char-cnn+torch+ubuntu14.04(RNN)
- torch系列:如何实现像matlab那样的hold on
- torch系列:torch中如何读取存放在hdf5文件中的字符串
- torch系列:torch中的nn.Sequential,nn.Concat/ConcatTable,nn.Parallel/PararelTable之间区别
- 给用torch的童鞋,lua代码规范
- torch系列:关于luajit中string.format的支持
- torch自定义cuda layer
- torch7学习笔记1——itorch_notebook与lua编译的安装
- torch mac openmp
- 显存 内存 使用量估计 卷积神经网络 convolution torch finput
- ubuntu14.04 Torch7安装与配置GPU
- Torch Threads
- ubuntu16安装Torch
- mac 安装 neuraltalk2 无gpu
- ubuntu安装torch遇到的问题
- 阿里云GPU服务器上Torch安装与测试
- google deepMind DQN 源码解读(1)