d4a2f656470e3190f8e877139455abcff1ad7cdb,rasa_core/policies/tf_utils.py,TimedNTM,__call__,#TimedNTM#Any#Any#Any#Any#,54

Before Change


                tf.reduce_sum(powed_probs, 1, keepdims=True) + 1e-32)

        // set probs for no intents and action_listens to zero
        if ignore_mask is not None:
            probs = tf.concat([tf.where(ignore_mask,
                                        tf.zeros_like(probs[:, :-1]),
                                        probs[:, :-1]),
                               probs[:, -1:]], 1)
        return probs, next_scores_state


def _compute_time_attention(attention_mechanism, attn_inputs, attention_state,

After Change


            // apply mask to scores
            if self._shift_weight is not None:
                // rearrange scores to make them continuous for convolution
                scores = tf.map_fn(self._rearrange_fn,
                                   [scores, mask], dtype=scores.dtype)
            else:
                scores = tf.where(mask > 0,
                                  scores, -self._inf * tf.ones_like(scores))
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 7

Instances


Project Name: RasaHQ/rasa
Commit Name: d4a2f656470e3190f8e877139455abcff1ad7cdb
Time: 2018-09-28
Author: mr.voov@gmail.com
File Name: rasa_core/policies/tf_utils.py
Class Name: TimedNTM
Method Name: __call__


Project Name: GPflow/GPflow
Commit Name: e6ce836b2925a677d0924e8859439937ba5808dc
Time: 2019-03-18
Author: sergio.diaz@prowler.io
File Name: gpflow/conditionals/mo_conditionals.py
Class Name:
Method Name: _conditional


Project Name: dhlab-epfl/dhSegment
Commit Name: c3ac58c90f2fe330eb036744fba3af2c14426fdc
Time: 2018-01-17
Author: seg.benoit@gmail.com
File Name: doc_seg/model.py
Class Name:
Method Name: model_fn