Represents a raw (i.e. non-differentiable immutable) tensor implemented by a dfx backend.
Each backend will provide one of more .NET implementations of this type, which may in turn wrap handles to native implementations.
| Constructor |
Description
|
|
|
| Instance member |
Description
|
Full Usage:
this.AbsInPlace
Modifiers: abstract |
Modifies the tensor by the element-wise absolute value of the tensor |
Returns the element-wise absolute value of the tensor
|
|
Full Usage:
this.AcosInPlace
Modifiers: abstract |
Modifies the tensor by the element-wise cos of the tensor |
|
Returns the element-wise cos of the tensor
|
|
|
|
Modifies the tensor by the element-wise addition of two scalars
|
|
Adds a slice of
|
|
|
|
|
|
|
Full Usage:
this.AllClose
Parameters:
RawTensor
relativeTolerance : float
absoluteTolerance : float
Returns: bool
Modifiers: abstract |
Indicates if the two tensors have the same shape and element type, and all corresponding values are equal up to the given tolerances.
|
Full Usage:
this.AsinInPlace
Modifiers: abstract |
Modifies the tensor by the element-wise asin of the tensor |
|
Returns the element-wise asin of the tensor
|
Full Usage:
this.AtanInPlace
Modifiers: abstract |
Modifies the tensor by the element-wise atan of the tensor |
|
Returns the element-wise atan of the tensor
|
Full Usage:
this.AvgPool1D
Parameters:
int
stride : int
padding : int
Returns: RawTensor
Modifiers: abstract |
|
Full Usage:
this.AvgPool2D
Parameters:
int[]
stride : int[]
padding : int[]
Returns: RawTensor
Modifiers: abstract |
Returns the 2D avgpool of a tensor
|
Full Usage:
this.AvgPool3D
Parameters:
int[]
stride : int[]
padding : int[]
Returns: RawTensor
Modifiers: abstract |
Returns the 2D avgpool of a tensor
|
|
|
|
|
|
|
|
|
|
Gets the backend for the tensor
|
|
|
Full Usage:
this.CeilInPlace
Modifiers: abstract |
Modifies the tensor by the element-wise integer ceiling of the tensor |
|
Returns the element-wise integer ceiling of the tensor
|
|
|
|
|
|
Clone the underlying storage of the tensor.
|
Full Usage:
this.ComputeHash
Returns: int
Modifiers: abstract |
Returns a hash of the contents of the tensor. This operation may cause the tensor to be moved to the CPU, and its entire contents iterated.
|
|
|
|
|
|
|
Full Usage:
this.CosInPlace
Modifiers: abstract |
Modifies the tensor by the element-wise cosine of the tensor |
Returns the element-wise cosine of the tensor
|
|
Full Usage:
this.CoshInPlace
Modifiers: abstract |
Modifies the tensor by the element-wise cosh of the tensor |
|
Returns the element-wise cosh of the tensor
|
|
|
Returns the determinant of a square matrix
|
|
|
Gets the device for the tensor
|
|
Gets the device type for the tensor
|
|
Returns the dilation of the tensor using the given dilations parameters
|
Full Usage:
this.Dim
Returns: int
Modifiers: abstract |
Gets the dimensionality of the tensor
|
|
|
|
Modifies the tensor by the element-wise division of two tensors
|
|
Modifies the tensor by the element-wise division of a tensor by a scalar, where the scalar is logically broadcast to the same shape as the tensor
|
|
|
|
|
|
Gets the element storage type for the tensor
|
|
Modifies the tensor by comparing each element pairwise with the corresponding element in
|
|
|
Full Usage:
this.ExpInPlace
Modifiers: abstract |
Modifies the tensor by the element-wise natural exponentiation of the tensor |
Returns the element-wise natural exponentiation of the tensor
|
|
|
|
|
|
Full Usage:
this.FloorInPlace
Modifiers: abstract |
Modifies the tensor by the element-wise integer floor of the tensor |
|
Returns the element-wise integer floor of the tensor
|
|
|
|
Modifies the tensor by comparing each element pairwise with the corresponding element in
|
|
Gets a .NET object representing the value of the tensor at the given indexes
|
Full Usage:
this.GetSlice
Parameters:
int[,]
-
The indexes are an Nx3 array. The first row is the start bounds, the second row is
the end bounds, the third is 1/0 indicating dimension removal.
Returns: RawTensor
Modifiers: abstract |
Get a slice of the given tensor.
|
|
Modifies the tensor by comparing each element pairwise with the corresponding element in
|
Full Usage:
this.Handle
Returns: obj
Modifiers: abstract |
Gets a handle to the underlying representation of the the tensor. For example, if the Torch backend is used this will be the corresponding TorchSharp TorchTensor.
|
|
Returns the inverse of a single square matrix (2d tensor) or a batch of square matrices (3d tensor)
|
|
Returns a boolean tensor where each element indicates if the corresponding element in the tensor is an infinity value
|
Full Usage:
this.IsMutable
Returns: bool
Modifiers: abstract |
|
|
Returns a boolean tensor where each element indicates if the corresponding element in the tensor is a NaN value
|
|
Modifies the tensor by comparing each element pairwise with the corresponding element in
|
Full Usage:
this.Log10InPlace
Modifiers: abstract |
Modifies the tensor by the element-wise base10 logarithm of the tensor |
|
Returns the element-wise base10 logarithm of the tensor
|
Full Usage:
this.LogInPlace
Modifiers: abstract |
Modifies the tensor by the element-wise natural logarithm of the tensor |
Returns the element-wise natural logarithm of the tensor
|
|
|
Modifies the tensor by comparing each element pairwise with the corresponding element in
|
|
Modifies the tensor by the matrix multiplication of two tensors
|
|
|
Full Usage:
this.MaxIndexT
Returns: int[]
Modifiers: abstract |
Gets the index of a maximum value of the tensor
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Full Usage:
this.MinIndexT
Returns: int[]
Modifiers: abstract |
Gets the index of a minimum value of the tensor
|
|
|
|
|
|
Modifies the tensor by the element-wise multiplication of two tensors
|
|
Modifies the tensor by the element-wise multiplication of a tensor and a scalar, where the scalar is logically broadcast to the same shape as the tensor
|
|
|
|
|
Full Usage:
this.NegInPlace
Modifiers: abstract |
Modifies the tensor by the element-wise negation of the tensor |
Returns the element-wise negation of the tensor
|
|
Full Usage:
this.Nelement
Returns: int
Modifiers: abstract |
Gets the number of elements in the tensor
|
|
Modifies the tensor by comparing each element pairwise with the corresponding element in
|
|
|
|
|
Full Usage:
this.OnesInPlace
Modifiers: abstract |
Modifies the tensor by setting all values to one |
|
Returns a view of the original tensor with its dimensions permuted
|
|
|
|
Modifies the tensor by the element-wise exponentiation of two tensors
|
|
Modifies the tensor by the element-wise exponentiation of a tensor and a scalar, where the scalar is logically broadcast to the same shape as the tensor
|
|
|
|
|
Full Usage:
this.Print
Parameters:
string
Returns: string
|
|
Full Usage:
this.RandomInPlace
Modifiers: abstract |
Modifies the tensor by setting it to random values taken from a uniform distribution in [0, 1). |
Full Usage:
this.RandomIntInPlace
Parameters:
int
high : int
Modifiers: abstract |
Gets a tensor filled with random integers from the given range
|
Full Usage:
this.RandomNormalInPlace
Modifiers: abstract |
Modifies the tensor by setting all values taken from a normal distribution with mean 0 and variance 1. |
Full Usage:
this.ReluInPlace
Modifiers: abstract |
Modifies the tensor by the element-wise ReLU of the tensor |
|
Returns the element-wise ReLU of the tensor
|
Full Usage:
this.RoundInPlace
Modifiers: abstract |
Modifies the tensor by the element-wise rounding of the tensor |
|
Returns the element-wise rounding of the tensor
|
|
|
Full Usage:
this.SetMutable
Modifiers: abstract |
A backdoor to switch this tensor to be usable as a mutable tensor. You should have a unique handle to this tensor for the entire time it is being used as a mutable tensor. |
|
Gets the shape of the tensor
|
Full Usage:
this.SigmoidInPlace
Modifiers: abstract |
Modifies the tensor by the element-wise sigmoid of the tensor |
|
Returns the element-wise sigmoid of the tensor
|
Full Usage:
this.SignInPlace
Modifiers: abstract |
Modifies the tensor by the element-wise sign of the tensor |
|
Returns the element-wise sign of the tensor
|
Full Usage:
this.SinInPlace
Modifiers: abstract |
Modifies the tensor by the element-wise sine of the tensor |
Returns the element-wise sine of the tensor
|
|
Full Usage:
this.SinhInPlace
Modifiers: abstract |
Modifies the tensor by the element-wise sinh of the tensor |
|
Returns the element-wise sinh of the tensor
|
Full Usage:
this.SoftplusInPlace
Modifiers: abstract |
Modifies the tensor by the element-wise softplus of the tensor |
|
Returns the element-wise softplus of the tensor
|
|
|
Full Usage:
this.SplitT
Parameters:
int[]
dim : int
Returns: RawTensor[]
Modifiers: abstract |
|
Full Usage:
this.SqrtInPlace
Modifiers: abstract |
Modifies the tensor by the element-wise square root of the tensor |
|
Returns the element-wise square root of the tensor
|
|
Returns the tensor with the same values and the given dimension removed. The given dimension must be of size 1.
|
|
|
|
|
|
Modifies the tensor by the element-wise subtraction of two tensors
|
|
Modifies the tensor by the element-wise subtraction of the tensor and a scalar, where the scalar is logically broadcast to the same shape as the tensor
|
|
|
|
|
|
|
Full Usage:
this.TanInPlace
Modifiers: abstract |
Modifies the tensor by the element-wise tangent of the tensor |
Returns the element-wise tangent of the tensor
|
|
Full Usage:
this.TanhInPlace
Modifiers: abstract |
Modifies the tensor by the element-wise tanh of the tensor |
|
Returns the element-wise tanh of the tensor
|
|
Returns a .NET array object for the values of a non-scalar tensor
|
|
Gets a .NET object representing the value of a scalar tensor
|
Full Usage:
this.ToValues
Returns: obj
Modifiers: abstract |
Get a .NET object for all the values in the tensor. The runtime type of the returned object is either a .NET scalar or array corresponding to the shape and element type of the tensor.
|
Full Usage:
this.TransposeT
Parameters:
int
dim1 : int
Returns: RawTensor
Modifiers: abstract |
Returns the transpose of the tensor between the given dimensions
|
|
Returns the transpose of a 2D tensor
|
|
Returns the reverse of the dilation of the tensor using the given dilations parameters
|
|
Returns the tensor with the same values and a dimension of size 1 inserted before the given dimension.
|
|
|
|
|
|
|
Full Usage:
this.ZerosInPlace
Modifiers: abstract |
Modifies the tensor by setting all values to zero |
| Static member |
Description
|
|
Gets a tensor filled with values drawn from the given .NET object.
The value may be a scalar, an array, or an array of tupled objects. If the
|
|
|
|
|
© Copyright 2021, DiffSharp and dfx Contributors.