I want to implement a multi layer 1d CNN with batch normalization[link] or weight normalization [1 ]
but I found the code of author could be run correctly for conv1dlayerconvB = Conv1DLayer( h , num_filters, filter_size , pad ='same', nonlinearity=lasagne.nonlinearities.rectify )conv1 = weight_norm(conv1)
- anyone could give me some advices
- and batch_norm of lasagne could be used to conv1d ?
I want to implement a multi layer 1d CNN with batch normalization[link] or weight normalization [1 ]
1)I found error at https://github.com/openai/weightnorm/blob/55917c3/lasagne/nn.py#L259
3) after https://github.com/openai/weightnorm/blob/55917c3/lasagne/nn.py#L232 , i add
elif len(self.input_shape)== 3:
self.axes_to_sum = (1,2,3)
self.dimshuffle_args = ['x','x','x']
for conv1d, our input_shape is (n_batch, seq_len , n_dim ), there is no num_input_channels for conv1d input