LIMA
Libre Multilingual Analyzer — C++ API
Loading...
Searching...
No Matches
op_base.h
Go to the documentation of this file.
1// Copyright 2021 CEA LIST
2// SPDX-FileCopyrightText: 2022 CEA LIST <gael.de-chalendar@cea.fr>
3//
4// SPDX-License-Identifier: MIT
5
6#ifndef DEEPLIMA_SRC_INFERENCE_EIGEN_OP_BASE_H
7#define DEEPLIMA_SRC_INFERENCE_EIGEN_OP_BASE_H
8
9#include <eigen3/Eigen/Dense>
10
11#include <memory>
12
13namespace deeplima
14{
15namespace eigen_impl
16{
17
19{
20 virtual ~param_base_t() { }
21
22};
23
25{
26public:
27
28 virtual ~Op_Base() { }
29
31 {
32 virtual ~workbench_t() { }
33 };
34
35 virtual std::shared_ptr<workbench_t> create_workbench(uint32_t input_size,
36 const std::shared_ptr<param_base_t> params,
37 bool precomputed_input) const = 0;
38};
39
40} // namespace eigen_impl
41} // namespace deeplima
42
43#endif
virtual std::shared_ptr< workbench_t > create_workbench(uint32_t input_size, const std::shared_ptr< param_base_t > params, bool precomputed_input) const =0