gcr / torch-residual-networks

This is a Torch implementation of ["Deep Residual Learning for Image Recognition",Kaiming He, Xiangyu Zhang, Shaoqing Ren, Jian Sun](http://arxiv.org/abs/1512.03385) the winners of the 2015 ILSVRC and COCO challenges.
zlib License
576 stars 146 forks source link

Update residual-layers.lua to be consistent with other torch nn models #6

Open lim0606 opened 8 years ago

lim0606 commented 8 years ago

Hi,

I updated residual-layers.lua so that it can be used with other available layers in torch community.

I thought this might be useful for someone who might want to use the residual layer in their network architecture.

This might be not the preferred way of @gcr.

Anyway, thank you for sharing your review work.

Best regards,

Jaehyun


This change is Reviewable

gcr commented 8 years ago

I see! Thank you -- I wasn't sure how to express this network in the usual Torch way, so I had to use the nngraph module. This example makes that clearer.

lim0606 commented 8 years ago

I just meant that the modification intended to make the layer be look-alike some tutorials in https://github.com/torch/torch7/wiki/Cheatsheet, e.g. https://github.com/soumith/imagenet-multiGPU.torch.

Thank you :)