(module: nn.LSTM)
| 36 | |
| 37 | @register_module_fixer(nn.LSTM) |
| 38 | def fix(module: nn.LSTM) -> DPLSTM: |
| 39 | dplstm = DPLSTM( |
| 40 | input_size=module.input_size, |
| 41 | hidden_size=module.hidden_size, |
| 42 | num_layers=module.num_layers, |
| 43 | bias=module.bias, |
| 44 | batch_first=module.batch_first, |
| 45 | dropout=module.dropout, |
| 46 | bidirectional=module.bidirectional, |
| 47 | ) |
| 48 | dplstm.load_state_dict(module.state_dict()) |
| 49 | return dplstm |
nothing calls this directly
no test coverage detected