- 博客(4)
- 资源 (1)
- 收藏
- 关注
原创 torch查看网络参数
net = nn.Sequential()net:add(nn.SpatialConvolution(1, 6, 5, 5)) -- 1 input image channel, 6 output channels, 5x5 convolution kernelnet:add(nn.ReLU()) -- non-linearity net:add(...
2018-05-09 21:33:30
2563
原创 python2编码
'你' ##'\xe4\xbd\xa0'u'你' ## u'\u4f60'('你').decode('utf-8') ##u'\u4f60'from __future__ import unicode_literals'你' ##u'\u4f60'u'你' ## u'\u4f60'('你').encode('utf-8') ##'\xe4\xbd\xa0'
2018-05-06 10:21:34
230
原创 Tensor 函数加下划线_,in-place version of function
b=torch.range(1,5) --1,2,3,4,5for i in b: i-=1print b --1,2,3,4,5没能修改值for i in b: i.sub_(1) print b --0,1,2,3,4可以修改值
2018-04-28 10:17:46
708
原创 torch.equal()相等判断
help(torch.equal)x = torch.Tensor{1,2,3}y=torch.Tensor{1,2,3}x:equal(y) ---true
2018-04-25 20:25:31
13115
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人
RSS订阅