NEML2 1.4.0
|
Concrete definition of tensor value. More...
Concrete definition of tensor value.
#include <TensorValue.h>
Public Member Functions | |
TensorValue ()=default | |
TensorValue (const T &value) | |
virtual void | to_ (const torch::TensorOptions &options) override |
Send the value to the target options. | |
virtual void | requires_grad_ (bool req=true) override |
Require grad. | |
virtual | operator Tensor () const override |
Convert the parameter value to a Tensor. | |
virtual void | operator= (const Tensor &val) override |
assignment operator | |
virtual TensorType | type () const override |
Tensor type. | |
T & | value () |
Public Member Functions inherited from TensorValueBase | |
virtual | ~TensorValueBase ()=default |
|
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.
|
inlineoverridevirtual |
Tensor type.
Implements TensorValueBase.
|
inline |