ef2e9106b17ea0d8bb56cee2ce7442ca4971afae,basic/model.py,Model,_build_forward,#Model#,50

Before Change


                else:
                    word_emb_mat = tf.get_variable("word_emb_mat", shape=[VW, config.word_emb_size], dtype="float")
            else:
                word_emb_mat = config.emb_mat.astype("float32")
            Ax = tf.nn.embedding_lookup(word_emb_mat, self.x)  // [N, M, JX, d]
            Aq = tf.nn.embedding_lookup(word_emb_mat, self.q)  // [N, JQ, d]
            Ax = linear([Ax], d, False, scope="Ax_reshape", wd=config.wd, input_keep_prob=config.input_keep_prob,
                        is_train=self.is_train)

After Change



        with tf.variable_scope("main"):
            u = tf.tile(tf.expand_dims(tf.expand_dims(u, 1), 1), [1, M, JX, 1])
            g0 = tf.concat(3, [h, u, h*u, tf.abs(h-u)])
            (fw_g1, bw_g1), _ = bidirectional_dynamic_rnn(cell, cell, g0, x_len, dtype="float", scope="h1")  // [N, M, JX, 2d]
            g1 = tf.concat(3, [fw_g1, bw_g1])
            (fw_g2, bw_g2), _ = bidirectional_dynamic_rnn(cell, cell, g1, x_len, dtype="float", scope="h2")  // [N, M, JX, 2d]
            g2 = tf.concat(3, [fw_g2, bw_g2])
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 5

Instances


Project Name: wenwei202/iss-rnns
Commit Name: ef2e9106b17ea0d8bb56cee2ce7442ca4971afae
Time: 2016-09-04
Author: seominjoon@gmail.com
File Name: basic/model.py
Class Name: Model
Method Name: _build_forward


Project Name: glm-tools/pyglmnet
Commit Name: 615c6b9270f1149f5e00ef17743cad9b8ac477bd
Time: 2018-09-05
Author: pavan.ramkumar@gmail.com
File Name: pyglmnet/pyglmnet.py
Class Name:
Method Name: _probit_g3


Project Name: glm-tools/pyglmnet
Commit Name: 615c6b9270f1149f5e00ef17743cad9b8ac477bd
Time: 2018-09-05
Author: pavan.ramkumar@gmail.com
File Name: pyglmnet/pyglmnet.py
Class Name:
Method Name: _probit_g4