Skip to content

Instantly share code, notes, and snippets.

@Hiroshiba
Created November 11, 2017 16:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Hiroshiba/95d10aeccb48c5b98520293ba154075a to your computer and use it in GitHub Desktop.
Save Hiroshiba/95d10aeccb48c5b98520293ba154075a to your computer and use it in GitHub Desktop.
chainer's Convolution1D
import chainer
class Convolution1D(chainer.links.ConvolutionND):
def __init__(self, in_channels, out_channels, ksize, stride=1, pad=0,
nobias=False, initialW=None, initial_bias=None,
cover_all=False):
super(Convolution1D, self).__init__(
ndim=1,
in_channels=in_channels,
out_channels=out_channels,
ksize=ksize,
stride=stride,
pad=pad,
nobias=nobias,
initialW=initialW,
initial_bias=initial_bias,
cover_all=cover_all,
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment