b3bf199724ec76c2642d3406cd99f60495100605,texar/tf/modules/embedders/embedder_base.py,EmbedderBase,_get_dropout_layer,#EmbedderBase#Any#Any#Any#Any#,64

Before Change


            if st == "element":
                noise_shape = None
            elif st == "item":
                noise_shape = tf.concat([tf.shape(dropout_input)[:ids_rank],
                                         tf.ones([self._dim_rank], tf.int32)],
                                        axis=0)
            elif st == "item_type":

After Change


            if st == "element":
                noise_shape = None
            elif st == "item":
                assert dropout_input is not None
                assert ids_rank is not None
                noise_shape = (dropout_input.get_shape().as_list()[:ids_rank]
                               + [1] * self._dim_rank)
            elif st == "item_type":
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 5

Non-data size: 3

Instances


Project Name: asyml/texar
Commit Name: b3bf199724ec76c2642d3406cd99f60495100605
Time: 2019-10-21
Author: pengzhi.gao@petuum.com
File Name: texar/tf/modules/embedders/embedder_base.py
Class Name: EmbedderBase
Method Name: _get_dropout_layer


Project Name: rwth-i6/returnn
Commit Name: de55ddd1ae0d4a572f9cd99c47884153d0baa930
Time: 2020-08-18
Author: albzey@gmail.com
File Name: returnn/tf/util/basic.py
Class Name:
Method Name: dropout


Project Name: rwth-i6/returnn
Commit Name: 73d430d4cf054577755984f4ec29ab6aefccd526
Time: 2021-03-10
Author: albzey@gmail.com
File Name: returnn/tf/util/data.py
Class Name: Data
Method Name: get_batch_dim


Project Name: interactiveaudiolab/nussl
Commit Name: 8b0a3c6ed9a0428be1bd26bfdcce35cb9af39f4a
Time: 2016-01-05
Author: eth@nmanilow.com
File Name: DUET.py
Class Name:
Method Name: find_peaks


Project Name: rwth-i6/returnn
Commit Name: bc8d67d23b9aa7c6e23d1980040f9cba1bdd19f6
Time: 2021-03-09
Author: albert.zeyer@rwth-aachen.de
File Name: returnn/tf/util/basic.py
Class Name:
Method Name: flatten_with_seq_len_mask