ce11b92597b32bccf9999e94550855e55e02da9b,sonnet/python/modules/basic_rnn.py,DeepRNN,_build,#DeepRNN#Any#Any#,312

Before Change


    for i, core in enumerate(self._cores):
      if self._skip_connections and i > 0:
        flat_input = (nest.flatten(inputs), nest.flatten(current_input))
        flat_input = [tf.concat(input_, 1) for input_ in zip(*flat_input)]
        current_input = nest.pack_sequence_as(structure=inputs,
                                              flat_sequence=flat_input)

After Change


        outputs.append(current_input)

    if self._skip_connections and self._concat_final_output_if_skip:
      output = nest.map_structure(concatenate, *outputs)
    else:
      output = current_input

    self._last_output_size = _get_shape_without_batch_dimension(output)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: deepmind/sonnet
Commit Name: ce11b92597b32bccf9999e94550855e55e02da9b
Time: 2018-10-16
Author: adriap@google.com
File Name: sonnet/python/modules/basic_rnn.py
Class Name: DeepRNN
Method Name: _build


Project Name: ray-project/ray
Commit Name: 1775e89f262111791fabfd40f80a24f74738fe54
Time: 2020-04-28
Author: sven@anyscale.io
File Name: rllib/models/tf/tf_action_dist.py
Class Name: MultiActionDistribution
Method Name: logp


Project Name: ray-project/ray
Commit Name: 1775e89f262111791fabfd40f80a24f74738fe54
Time: 2020-04-28
Author: sven@anyscale.io
File Name: rllib/policy/policy.py
Class Name:
Method Name: clip_action