自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(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关注的人

提示
确定要删除当前文章?
取消 删除