26#include "neml2/tensors/Tensor.h"
59 virtual
void operator=(const
Tensor & val) = 0;
71 : _value(std::move(
value))
77 operator Tensor()
const override;
TensorValueBase(const TensorValueBase &)=default
TensorValueBase()=default
TensorValueBase(TensorValueBase &&) noexcept=default
TensorValueBase & operator=(const TensorValueBase &)=default
virtual TensorType type() const =0
Tensor type.
virtual void to_(const TensorOptions &)=0
Send the value to the target options.
virtual void requires_grad_(bool req=true)=0
Require grad.
T & value()
Definition TensorValue.h:80
TensorValue(T value)
Definition TensorValue.h:70
Definition DiagnosticsInterface.cxx:29
TensorType
Definition tensors.h:61
c10::TensorOptions TensorOptions
Definition types.h:60