#include <deeplima/eigen_wrp/birnn_inference_base.h>
|
| virtual | ~BiRnnInferenceBase ()=default |
| |
| virtual void | load (const std::string &fn)=0 |
| |
| const uint_dicts_holder_t & | get_input_uint_dicts () const |
| |
| const std::vector< std::string > & | get_input_uint_dicts_names () const |
| |
| const str_dicts_holder_t & | get_input_str_dicts () const |
| |
| const std::vector< std::string > & | get_input_str_dicts_names () const |
| |
| const std::vector< std::vector< std::string > > & | get_output_str_dicts () const |
| |
| const std::vector< std::string > & | get_output_str_dicts_names () const |
| |
| virtual size_t | init_new_worker (size_t input_len, bool precomputed_input=false) |
| |
| virtual void | precompute_inputs (const Eigen::MatrixXf &inputs, Eigen::MatrixXf &outputs, int64_t input_size)=0 |
| |
| virtual void | predict (size_t worker_id, const Eigen::MatrixXf &inputs, int64_t input_begin, int64_t input_end, int64_t output_begin, int64_t output_end, std::shared_ptr< StdMatrix< uint8_t > > &output, const std::vector< std::string > &outputs_names)=0 |
| |
Definition at line 23 of file birnn_inference_base.h.
◆ Matrix
◆ params_bilstm_spec_t
◆ params_multilayer_bilstm_spec_t
◆ Scalar
◆ str_dicts_holder_t
◆ tensor_t
◆ uint_dicts_holder_t
◆ Vector
◆ ~BiRnnInferenceBase()
| virtual deeplima::eigen_impl::BiRnnInferenceBase::~BiRnnInferenceBase |
( |
| ) |
|
|
virtualdefault |
◆ convert_dicts_and_embeddings()
◆ convert_from_torch()
| virtual void deeplima::eigen_impl::BiRnnInferenceBase::convert_from_torch |
( |
const std::string & |
fn | ) |
|
|
protectedpure virtual |
◆ get_input_str_dicts()
| const str_dicts_holder_t & deeplima::eigen_impl::BiRnnInferenceBase::get_input_str_dicts |
( |
| ) |
const |
|
inline |
◆ get_input_str_dicts_names()
| const std::vector< std::string > & deeplima::eigen_impl::BiRnnInferenceBase::get_input_str_dicts_names |
( |
| ) |
const |
|
inline |
◆ get_input_uint_dicts()
| const uint_dicts_holder_t & deeplima::eigen_impl::BiRnnInferenceBase::get_input_uint_dicts |
( |
| ) |
const |
|
inline |
◆ get_input_uint_dicts_names()
| const std::vector< std::string > & deeplima::eigen_impl::BiRnnInferenceBase::get_input_uint_dicts_names |
( |
| ) |
const |
|
inline |
◆ get_output_str_dicts()
| const std::vector< std::vector< std::string > > & deeplima::eigen_impl::BiRnnInferenceBase::get_output_str_dicts |
( |
| ) |
const |
|
inline |
◆ get_output_str_dicts_names()
| const std::vector< std::string > & deeplima::eigen_impl::BiRnnInferenceBase::get_output_str_dicts_names |
( |
| ) |
const |
|
inline |
◆ init_new_worker()
| virtual size_t deeplima::eigen_impl::BiRnnInferenceBase::init_new_worker |
( |
size_t |
input_len, |
|
|
bool |
precomputed_input = false |
|
) |
| |
|
inlinevirtual |
◆ load()
| virtual void deeplima::eigen_impl::BiRnnInferenceBase::load |
( |
const std::string & |
fn | ) |
|
|
pure virtual |
◆ precompute_inputs()
| virtual void deeplima::eigen_impl::BiRnnInferenceBase::precompute_inputs |
( |
const Eigen::MatrixXf & |
inputs, |
|
|
Eigen::MatrixXf & |
outputs, |
|
|
int64_t |
input_size |
|
) |
| |
|
pure virtual |
◆ predict()
| virtual void deeplima::eigen_impl::BiRnnInferenceBase::predict |
( |
size_t |
worker_id, |
|
|
const Eigen::MatrixXf & |
inputs, |
|
|
int64_t |
input_begin, |
|
|
int64_t |
input_end, |
|
|
int64_t |
output_begin, |
|
|
int64_t |
output_end, |
|
|
std::shared_ptr< StdMatrix< uint8_t > > & |
output, |
|
|
const std::vector< std::string > & |
outputs_names |
|
) |
| |
|
pure virtual |
◆ m_input_str_dicts
◆ m_input_str_dicts_names
| std::vector<std::string> deeplima::eigen_impl::BiRnnInferenceBase::m_input_str_dicts_names |
|
protected |
◆ m_input_uint_dicts
◆ m_input_uint_dicts_names
| std::vector<std::string> deeplima::eigen_impl::BiRnnInferenceBase::m_input_uint_dicts_names |
|
protected |
◆ m_linear
| std::vector<params_linear_t<Eigen::MatrixXf, Eigen::VectorXf> > deeplima::eigen_impl::BiRnnInferenceBase::m_linear |
|
protected |
◆ m_linear_idx
| std::map<std::string, size_t> deeplima::eigen_impl::BiRnnInferenceBase::m_linear_idx |
|
protected |
◆ m_lstm
◆ m_lstm_idx
| std::map<std::string, size_t> deeplima::eigen_impl::BiRnnInferenceBase::m_lstm_idx |
|
protected |
◆ m_multi_bilstm
◆ m_multi_bilstm_idx
| std::map<std::string, size_t> deeplima::eigen_impl::BiRnnInferenceBase::m_multi_bilstm_idx |
|
protected |
◆ m_ops
| std::vector<std::shared_ptr<Op_Base> > deeplima::eigen_impl::BiRnnInferenceBase::m_ops |
|
protected |
◆ m_output_str_dicts
| std::vector<std::vector<std::string> > deeplima::eigen_impl::BiRnnInferenceBase::m_output_str_dicts |
|
protected |
◆ m_output_str_dicts_names
| std::vector<std::string> deeplima::eigen_impl::BiRnnInferenceBase::m_output_str_dicts_names |
|
protected |
◆ m_params
| std::vector<std::shared_ptr<param_base_t> > deeplima::eigen_impl::BiRnnInferenceBase::m_params |
|
protected |
◆ m_wb
| std::vector<std::vector<std::shared_ptr<Op_Base::workbench_t> > > deeplima::eigen_impl::BiRnnInferenceBase::m_wb |
|
protected |
The documentation for this class was generated from the following files: