mirror of
https://github.com/wassname/multifit.git
synced 2026-09-08 17:10:12 +08:00
Make callable through bicls_head
This commit is contained in:
@@ -272,6 +272,7 @@ def get_birnn_classifier(bptt:int, max_seq:int, n_class:int, vocab_sz:int, emb_s
|
||||
head = BiPoolingLinearClassifier
|
||||
if bicls_head == 'BiPoolingLinearClassifier': head = BiPoolingLinearClassifier
|
||||
elif bicls_head == 'AvgPoolingLinearClassifier': head = AvgPoolingLinearClassifier
|
||||
elif bicls_head == 'BiAttentionPoolingClassifier': head = BiAttentionPoolingClassifier
|
||||
|
||||
model = SequentialRNN(BiLMModel(fwd_rnn_enc, bwd_rnn_enc), head(layers, drops))
|
||||
model.reset()
|
||||
|
||||
Reference in New Issue
Block a user