linkedin / detext

DeText: A Deep Neural Text Understanding Framework for Ranking and Classification Tasks
BSD 2-Clause "Simplified" License
1.26k stars 134 forks source link

[detext] Fix multi layer runtime crash when using multi-layer LSTM en… #14

Closed StarWang closed 4 years ago

StarWang commented 4 years ago

…coder

Description

When using num_layers > 1 for ftr_ext=lstm, training crashes because incorrect calls for LSTM state (there's no LstmStateTuple.h when num_layers > 1, we have to call LstmStateTuple[-1].h). This PR fixes such issue.

Type of change

List all changes

Please list all changes in the commit.

Testing

Test Configuration:

Checklist