d4aa09c5b5b762b0b809d349cb7a8f50212a7107,theanolm/layers/tanhlayer.py,TanhLayer,create_structure,#TanhLayer#,34
Before Change
``set_params()``.
preacts = []
for input_index, input_layer in enumerate(self.input_layers):
param_name = "input" + str(input_index)
preacts.append(self._tensor_preact(input_layer.output, param_name))
self.output = tensor.tanh(sum(preacts))
After Change
``set_params()``.
layer_input = tensor.concatenate([x.output for x in self.input_layers],
axis=2)
preact = self._tensor_preact(layer_input, "input")
self.output = tensor.tanh(preact)
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 11
Instances
Project Name: senarvi/theanolm
Commit Name: d4aa09c5b5b762b0b809d349cb7a8f50212a7107
Time: 2016-06-20
Author: seppo.git@marjaniemi.com
File Name: theanolm/layers/tanhlayer.py
Class Name: TanhLayer
Method Name: create_structure
Project Name: dnouri/skorch
Commit Name: ef1838cd5c59ae07e5179138469b3c6dab2e5f81
Time: 2017-11-16
Author: marian.tietz@ottogroup.com
File Name: examples/word_language_model/net.py
Class Name: Net
Method Name: score
Project Name: senarvi/theanolm
Commit Name: d4aa09c5b5b762b0b809d349cb7a8f50212a7107
Time: 2016-06-20
Author: seppo.git@marjaniemi.com
File Name: theanolm/layers/softmaxlayer.py
Class Name: SoftmaxLayer
Method Name: create_structure