6c4e91a811ad9e996579f99eec9b9e6f68db72dd,basic/model.py,Model,_build_forward,#Model#,52
Before Change
else:
word_emb_mat = tf.get_variable("word_emb_mat", shape=[VW, dw], 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]
xx = tf.concat(3, [xxc, Ax]) // [N, M, JX, di]
After Change
word_emb_mat = tf.get_variable("word_emb_mat", dtype="float", shape=[VW, dw], initializer=get_initializer(config.emb_mat))
else:
word_emb_mat = tf.get_variable("word_emb_mat", shape=[VW, dw], dtype="float")
if config.use_glove_for_unk:
new_word_emb_mat = tf.concat(0, [word_emb_mat, tf.constant(config.new_emb_mat, dtype="float32")])
word_emb_mat = tf.cond(self.is_train, lambda: word_emb_mat, lambda: new_word_emb_mat)
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]
xx = tf.concat(3, [xxc, Ax]) // [N, M, JX, di]
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 6
Instances
Project Name: wenwei202/iss-rnns
Commit Name: 6c4e91a811ad9e996579f99eec9b9e6f68db72dd
Time: 2016-09-13
Author: seominjoon@gmail.com
File Name: basic/model.py
Class Name: Model
Method Name: _build_forward
Project Name: scikit-learn-contrib/categorical-encoding
Commit Name: 3526a6d7d5005d0cb126a39c894ad7f46b441260
Time: 2018-11-17
Author: jcastaldo08@gmail.com
File Name: category_encoders/one_hot.py
Class Name: OneHotEncoder
Method Name: get_dummies
Project Name: metagenome-atlas/atlas
Commit Name: 3ab0e54a3ce88c7018a34192461dd47e5867d357
Time: 2017-01-28
Author: joe.brown@pnnl.gov
File Name: atlas/tables.py
Class Name:
Method Name: col_split