DetachedTensor<T>
Structs ยท AiDotNet.SelfSupervisedLearning
A wrapper that marks a tensor as detached from the computation graph.
Inheritance: ValueType โ DetachedTensor<T>
Implements: IDetachedTensor<T>
Constructors
| Constructor | Summary |
|---|---|
DetachedTensor(Tensor<T> tensor) |
Initializes a new DetachedTensor wrapping the given tensor. |
Properties
| Property | Summary |
|---|---|
Tensor<T> Data { get; } |
Methods
| Method | Summary |
|---|---|
DetachedTensor<T> From(Tensor<T> tensor) |
Creates a DetachedTensor from a regular tensor. |
Tensor<T> op_Implicit(DetachedTensor<T> detached) |
Implicitly converts a DetachedTensor to its underlying Tensor. |