4cc55d691485d21ca27437ddb174a928fb530452,matchzoo/models/mvlstm.py,MVLSTM,build,#MVLSTM#,42
Before Change
embed_query = embedding(query)
embed_doc = embedding(doc)
// Process query & document input.
bi_lstm = keras.layers.Bidirectional(keras.layers.LSTM(
self._params["hidden_size"],
return_sequences=True, dropout=self._params["dropout_rate"]))
rep_query = bi_lstm(embed_query)
rep_doc = bi_lstm(embed_doc)
After Change
return_sequences=True,
dropout=self._params["dropout_rate"]
))(embed_query)
rep_doc = keras.layers.Bidirectional(keras.layers.LSTM(
self._params["lstm_units"],
return_sequences=True,
dropout=self._params["dropout_rate"]
))(embed_doc)
// Top-k matching layer
matching_matrix = keras.layers.Dot(
axes=[2, 2], normalize=False)([rep_query, rep_doc])
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 3
Instances
Project Name: NTMC-Community/MatchZoo
Commit Name: 4cc55d691485d21ca27437ddb174a928fb530452
Time: 2019-01-03
Author: fanyixing111@hotmail.com
File Name: matchzoo/models/mvlstm.py
Class Name: MVLSTM
Method Name: build
Project Name: pyannote/pyannote-audio
Commit Name: 78197159b897391afd44862381694134bb8d049f
Time: 2017-01-11
Author: bredin@limsi.fr
File Name: pyannote/audio/labeling/models.py
Class Name: StackedLSTM
Method Name: __call__
Project Name: pyannote/pyannote-audio
Commit Name: 14a9d386baf93b8266fa21277b40d669a4e397d2
Time: 2016-11-14
Author: hbredin@users.noreply.github.com
File Name: pyannote/audio/embedding/models.py
Class Name: TristouNet
Method Name: __call__