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":
                noise_shape = [None] + [1] * self._dim_rank
            else:
                raise ValueError("Unknown dropout strategy: {}".format(st))

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: 3

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: asyml/texar
Commit Name: af461df627ef660d1a71b6981dedb4e4b504ba9a
Time: 2017-09-25
Author: junxianh2@gmail.com
File Name: txtgen/modules/connectors/connectors.py
Class Name: StochasticConnector
Method Name: _build


Project Name: osmr/imgclsmob
Commit Name: 33c803c9ff0f56545a712dc8ec51c0aadf26381d
Time: 2018-12-06
Author: osemery@gmail.com
File Name: tensorflow_/tensorflowcv/models/channelnet.py
Class Name:
Method Name: simple_group_block