![]() |
LIMA
Libre Multilingual Analyzer — C++ API
|
#include <deeplima/torch_wrp/torch_matrix.h>
Public Types | |
| typedef T | value_t |
| typedef torch::Tensor | tensor_t |
Public Member Functions | |
| TorchMatrix () | |
| TorchMatrix (int64_t max_time, int64_t max_feat) | |
| TorchMatrix (torch::Tensor input, int64_t start_time, int64_t max_time) | |
| void | init (int64_t max_time, int64_t max_feat) |
| void | set (int64_t time, uint64_t feat, T value) |
| uint64_t | get (uint64_t time, uint64_t feat) |
| uint64_t | size () const |
| uint64_t | get_max_feat () const |
| const torch::Tensor & | get_tensor () const |
| void | to (torch::Device &device) |
Protected Member Functions | |
| void | create () |
| torch::Tensor | create_empty_tensor () |
| torch::Tensor | create_tensor (int64_t max_time, int64_t max_feat) |
| torch::Tensor | create_tensor (int64_t max_time, int64_t max_feat) |
| torch::Tensor | create_tensor (int64_t max_time, int64_t max_feat) |
| void | create () |
| void | create () |
Protected Attributes | |
| int64_t | m_start_time |
| int64_t | m_max_time |
| int64_t | m_max_feat |
| torch::Tensor | m_tensor |
| torch::TensorAccessor< T, 2 > | m_accessor |
Definition at line 15 of file torch_matrix.h.
| typedef torch::Tensor deeplima::TorchMatrix< T >::tensor_t |
Definition at line 19 of file torch_matrix.h.
| typedef T deeplima::TorchMatrix< T >::value_t |
Definition at line 18 of file torch_matrix.h.
|
inline |
Definition at line 21 of file torch_matrix.h.
|
inline |
Definition at line 29 of file torch_matrix.h.
|
inline |
Definition at line 42 of file torch_matrix.h.
|
protected |
|
inlineprotected |
Definition at line 161 of file torch_matrix.h.
|
inlineprotected |
Definition at line 171 of file torch_matrix.h.
|
inlineprotected |
Definition at line 110 of file torch_matrix.h.
|
protected |
|
inlineprotected |
Definition at line 125 of file torch_matrix.h.
|
inlineprotected |
Definition at line 134 of file torch_matrix.h.
|
inline |
Definition at line 79 of file torch_matrix.h.
|
inline |
Definition at line 92 of file torch_matrix.h.
|
inline |
Definition at line 97 of file torch_matrix.h.
|
inline |
Definition at line 55 of file torch_matrix.h.
|
inline |
Definition at line 68 of file torch_matrix.h.
|
inline |
Definition at line 87 of file torch_matrix.h.
|
inline |
Definition at line 102 of file torch_matrix.h.
|
protected |
Definition at line 121 of file torch_matrix.h.
|
protected |
Definition at line 118 of file torch_matrix.h.
|
protected |
Definition at line 117 of file torch_matrix.h.
|
protected |
Definition at line 116 of file torch_matrix.h.
|
protected |
Definition at line 120 of file torch_matrix.h.