[torch] some bugs
来源:互联网 发布:什么是数据挖掘技术 编辑:程序博客网 时间:2024/06/04 19:25
error1
1.”bad argument #1 to ‘set’ (expecting number or torch.DoubleTensor or torch.DoubleStorage at /tmp/luarocks_torch-scm-1-9965/torch7/generic/Tensor.c:1153)”
mulLSTMmodel = nn.MapTable(nn.convLSTM(opt))out = mulLSTMmodel:forward(input)
I wrote that nn.convLSTM
, then error happens at the 2rd line.
I checked the MapTable.lua, then I found (default) it will copy self.sharedparams = {'weight', 'bias', 'gradWeight', 'gradBias'}
,
so I
mulLSTMmodel = nn.MapTable(nn.convLSTM(opt), false)
However, it may influence the backward
.
Finally, I decided to write my own MapTable.
error2
“inputs[1] should be an nngraph.Node but is of type torch.DoubleTensor”
don’t use any nnfunction in a layer written by yourself if you require ‘nngraph’
require 'nn'local layer, Parent = torch.class('nn.mul_convLSTM', 'nn.Module')...function layer:updateOutput(input) ... out = nn.Reshape(out2)end
the code shown above works well, however, once you use require nngraph
in the code,
–> “inputs[1] should be an nngraph.Node but is of type torch.DoubleTensor”
- [torch] some bugs
- Some experienced note of bugs
- torch
- Torch
- Torch
- Torch
- Torch
- Torch
- Torch
- BUGS
- bugs
- Bugs Bugs
- What are some recent major computer system failures caused by software bugs?
- Record wireshark lua's bugs found by myself and some suggestion
- some
- some
- some
- some
- 面试题目
- Spring MVC 学习总结(九)——Spring MVC实现RESTful与JSON(Spring MVC为前端提供服务)
- 防sql注入
- tcpdump常用参数说明
- Sublime Text3 tab快捷键失效解决办法
- [torch] some bugs
- (转)Python中的ConfigParser模块使用详解
- Mysql实现企业级数据库主从复制架构实战
- R语言生存分析数据分析可视化案例
- Android DiskLruCache缓存工具封装
- python pandas 数据框 条件选取行列数据
- 数据结构与算法--Boyer-Moore和Rabin-Karp子字符串查找
- centos6.8下mosquitto分布式集群
- Shell编程基础篇-下