|
NEML2 2.0.0
|
Concrete definition of tensor value. More...
Concrete definition of tensor value.
#include <TensorValue.h>

Public Member Functions | |
| TensorValue (T value) | |
| void | to_ (const TensorOptions &options) override |
| Send the value to the target options. | |
| void | requires_grad_ (bool req=true) override |
| Require grad. | |
| operator Tensor () const override | |
| Convert the parameter value to a Tensor. | |
| void | operator= (const Tensor &val) override |
| assignment operator | |
| TensorType | type () const override |
| Tensor type. | |
| const T & | operator() () const |
| void | assign (const ATensor &val, TracerPrivilege key) override |
| Secret assignment operator used by low-level operations such as jit tracing. | |
Public Member Functions inherited from TensorValueBase | |
| TensorValueBase ()=default | |
| TensorValueBase (const TensorValueBase &)=default | |
| TensorValueBase (TensorValueBase &&) noexcept=default | |
| TensorValueBase & | operator= (const TensorValueBase &)=default |
| TensorValueBase & | operator= (TensorValueBase &&) noexcept=default |
| virtual | ~TensorValueBase ()=default |
Additional Inherited Members | |
Protected Attributes inherited from TensorValueBase | |
| Size | _cached_intmd_dim = 0 |
| Cached intermediate dimension. | |
|
inlineexplicit |
|
overridevirtual |
Secret assignment operator used by low-level operations such as jit tracing.
Implements TensorValueBase.
|
overridevirtual |
Convert the parameter value to a Tensor.
Implements TensorValueBase.
|
inline |
|
overridevirtual |
assignment operator
Implements TensorValueBase.
|
overridevirtual |
Require grad.
Implements TensorValueBase.
|
overridevirtual |
Send the value to the target options.
Implements TensorValueBase.
|
overridevirtual |
Tensor type.
Implements TensorValueBase.