![]() |
LIMA
Libre Multilingual Analyzer — C++ API
|
A bilinear module that deals with broadcasting for efficient memory usage. More...
#include </home/runner/work/lima/lima/deeplima/libs/nn/torch_modules/stanza_models_depparse_model.h>
Public Member Functions | |
| PairwiseBilinearImpl ()=default | |
| PairwiseBilinearImpl (int64_t input1_size, int64_t input2_size, int output_size, bool bias=true) | |
| torch::Tensor | forward (torch::Tensor input1, torch::Tensor input2) |
Public Attributes | |
| int64_t | input1_size |
| int64_t | input2_size |
| int64_t | output_size |
A bilinear module that deals with broadcasting for efficient memory usage.
Input: tensors of sizes (N x L1 x D1) and (N x L2 x D2) Output: tensor of size (N x L1 x L2 x O)
Definition at line 411 of file stanza_models_depparse_model.h.
|
default |
|
inline |
Definition at line 415 of file stanza_models_depparse_model.h.
|
inline |
Definition at line 427 of file stanza_models_depparse_model.h.
| int64_t deeplima::nets::torch_modules::PairwiseBilinearImpl::input1_size |
Definition at line 446 of file stanza_models_depparse_model.h.
| int64_t deeplima::nets::torch_modules::PairwiseBilinearImpl::input2_size |
Definition at line 446 of file stanza_models_depparse_model.h.
| int64_t deeplima::nets::torch_modules::PairwiseBilinearImpl::output_size |
Definition at line 447 of file stanza_models_depparse_model.h.