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: 8
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: tensorflow/models
Commit Name: 64710c051f26a2778c03fc15ef29c4bcae01df32
Time: 2018-08-22
Author: reedwm@google.com
File Name: official/recommendation/ncf_main.py
Class Name:
Method Name: evaluate_model
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