![]() |
libdl
0.0.1
Simple yet powerful deep learning
|
The Tensor is a managed pointer to a tensor. It can generally be thought of like an std::unique_ptr<TensorImpl>. More...
#include <tensorptr.hpp>
Public Member Functions | |
TensorPtr (TensorPtr &&other) | |
TensorPtr (const TensorPtr &other) | |
TensorPtr (std::nullptr_t p) | |
TensorPtr (int value) | |
TensorPtr (float value) | |
TensorPtr (double value) | |
TensorPtr (InitializerTensor< int > value) | |
TensorPtr (InitializerTensor< float > value) | |
TensorPtr (InitializerTensor< double > value) | |
TensorImpl * | operator-> () noexcept |
const TensorImpl * | operator-> () const noexcept |
TensorImpl & | operator* () noexcept |
const TensorImpl & | operator* () const noexcept |
TensorPtr & | operator= (const TensorPtr &other) |
TensorPtr & | operator= (TensorPtr &&other) |
bool | operator== (const std::nullptr_t &other) const noexcept |
operator bool () const noexcept | |
Static Public Member Functions | |
template<typename T , typename... Args> | |
static TensorPtr | create (Args &&... args) noexcept |
The Tensor is a managed pointer to a tensor. It can generally be thought of like an std::unique_ptr<TensorImpl>.
The Tensor's main purpose is implementation hiding, which is especially importan since the concrete tensor implementation could be, e.g., a sparse tensor, a dense tensor or even tensors on different devices (i.e., using different drivers like cuda or xtensor). The implementation, generally, is agnostic to these differences and Tensor hides them.
Definition at line 45 of file tensorptr.hpp.
|
inline |
Definition at line 52 of file tensorptr.hpp.
|
inline |
Definition at line 54 of file tensorptr.hpp.
|
inlinestaticnoexcept |
Definition at line 75 of file tensorptr.hpp.
|
inlinenoexcept |
Definition at line 72 of file tensorptr.hpp.
|
inlinenoexcept |
Definition at line 66 of file tensorptr.hpp.
|
inlinenoexcept |
Definition at line 65 of file tensorptr.hpp.
|
inlinenoexcept |
Definition at line 63 of file tensorptr.hpp.
|
inlinenoexcept |
Definition at line 62 of file tensorptr.hpp.
|
inlinenoexcept |
Definition at line 71 of file tensorptr.hpp.