509453992838a524f6442d4e0f07a034390ae1f7,layers/eight_mile/tf/layers.py,BiLSTMEncoderAll1,call,#BiLSTMEncoderAll1#Any#,1204
Before Change
h = tf.concat([fwd_state[i].h, bwd_state[i].h], -1)
c = tf.concat([fwd_state[i].c, bwd_state[i].c], -1)
encoder_state.append(tf.contrib.rnn.LSTMStateTuple(h=h, c=c))
encoder_state = tuple(encoder_state)
return self.output_fn(rnnout, encoder_state)
def output_fn(self, out, state):
return out, state
After Change
hs = []
for rnn in self.rnns:
outputs, h1, h2 = rnn(inputs, mask=mask)
h = tf.stack([h1, h2])
hs.append(h)
inputs = outputs
_, B, H = get_shape_as_list(h)
h = tf.reshape(tf.stack(hs), [-1, B, H * 2])
return self.output_fn(outputs, h)
@property
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 3
Instances
Project Name: dpressel/mead-baseline
Commit Name: 509453992838a524f6442d4e0f07a034390ae1f7
Time: 2020-02-13
Author: dpressel@gmail.com
File Name: layers/eight_mile/tf/layers.py
Class Name: BiLSTMEncoderAll1
Method Name: call
Project Name: analysiscenter/batchflow
Commit Name: 260fe0d000a12e869206d8e36300a446a9891b35
Time: 2019-11-17
Author: nikita_007_94@mail.ru
File Name: batchflow/models/eager_torch/layers/core.py
Class Name: Dropout
Method Name: forward
Project Name: tensorly/tensorly
Commit Name: b1f90776bd41b6319818f65aba5536b81e8b5c8d
Time: 2019-04-23
Author: jean.kossaifi@gmail.com
File Name: tensorly/tenalg/n_mode_product.py
Class Name:
Method Name: unfolding_dot_khatri_rao