6#ifndef DEEPLIMA_SRC_INCLUDE_SEGMENTATION_SEGMENTATION_EIGEN_INFERENCE_IMPL_H
7#define DEEPLIMA_SRC_INCLUDE_SEGMENTATION_SEGMENTATION_EIGEN_INFERENCE_IMPL_H
9#include <eigen3/Eigen/Dense>
27 #define SEGM_EXPORT __declspec(dllexport)
28#elif defined(DEEPLIMA_CONVERTFROMTORCH_SHARED)
29 #define SEGM_EXPORT __declspec(dllimport)
47 virtual void load(
const std::string& fn)
58 const Eigen::MatrixXf& ,
63 throw std::runtime_error(
"Precomputing isn't supported for segmentation");
68 const Eigen::MatrixXf& inputs,
74 const std::vector<std::string>&
77 auto p_op = std::dynamic_pointer_cast<deeplima::eigen_impl::Op_BiLSTM_Dense_ArgMax<Eigen::MatrixXf, Eigen::VectorXf, float>>(
Parent::m_ops[0]);
81 input_begin, input_end, output_begin, output_end);
std::vector< std::vector< std::shared_ptr< Op_Base::workbench_t > > > m_wb
std::vector< std::shared_ptr< Op_Base > > m_ops
std::vector< std::shared_ptr< param_base_t > > m_params
virtual void load(const std::string &fn)
std::vector< impl::ngram_descr_t > m_ngram_gescr
const std::vector< impl::ngram_descr_t > & get_ngram_descr() const
virtual void precompute_inputs(const Eigen::MatrixXf &, Eigen::MatrixXf &, int64_t)
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 > &)
EmbdUInt64FloatHolder dicts_holder_t
deeplima::eigen_impl::BiRnnInferenceBase Parent
virtual void convert_from_torch(const std::string &fn)
Edit rules for lemmatizing words absent from the lemma dictionary.
DictsHolderImpl< EmbdUInt64Float > EmbdUInt64FloatHolder