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 torch::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. | |
T & | value () |
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 |
|
inlineexplicit |
Convert the parameter value to a Tensor.
Implements TensorValueBase.
assignment operator
Implements TensorValueBase.
Require grad.
Implements TensorValueBase.
Send the value to the target options.
Implements TensorValueBase.
|
overridevirtual |
Tensor type.
Implements TensorValueBase.
|
inline |