Represents a raw (i.e. non-differentiable immutable) tensor implemented by a DiffSharp 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 |
|
|
|
Full Usage:
this.AcosInPlace
Modifiers: abstract |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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 |
|
|
|
Full Usage:
this.AtanInPlace
Modifiers: abstract |
|
|
|
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 |
|
Full Usage:
this.AvgPool3D
Parameters:
int[]
stride : int[]
padding : int[]
Returns: RawTensor
Modifiers: abstract |
|
|
Returns the reverse mode of a 1D avgpool of a tensor, apportioning each part of the adjoint equally to each corresponding input The originalInput parameter is only used for shape information
|
|
Returns the reverse mode of a 2D avgpool of a tensor, apportioning each part of the adjoint equally to each corresponding input The originalInput parameter is only used for shape information
|
|
Returns the reverse mode of a 3D avgpool of a tensor, apportioning each part of the adjoint equally to each corresponding input The originalInput parameter is only used for shape information
|
|
|
|
|
|
|
|
|
Full Usage:
this.CeilInPlace
Modifiers: abstract |
|
|
|
|
|
|
|
|
|
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 |
|
|
|
Full Usage:
this.CoshInPlace
Modifiers: abstract |
|
|
|
|
Gets a tensor filled with values drawn from the given .NET object for the given configuration settings, defaulting to the configuration settings of the object tensor.
|
|
|
|
|
|
|
|
|
Full Usage:
this.Dim
Returns: int
Modifiers: abstract |
|
|
Returns the element-wise division of a scalar by a tensor, where the scalar is logically broadcast to the same shape as the tensor
|
|
|
|
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
|
|
|
|
Returns the element-wise division of a tensor by a scalar, where the scalar is logically broadcast to the same shape as the tensor
|
|
|
Gets a tensor filled with arbitrary values for the given shape and configuration settings, defaulting to the configuration settings of the object tensor
|
|
|
|
|
|
|
|
Full Usage:
this.ExpInPlace
Modifiers: abstract |
|
|
|
|
|
|
|
Full Usage:
this.FloorInPlace
Modifiers: abstract |
|
|
|
Gets a tensor filled with the given scalar value for the given shape and configuration settings, defaulting to the configuration settings of the object tensor
|
|
|
Returns a tensor selecting the given indices from the given dimension and stacking those in the order specified.
|
|
|
|
|
|
|
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 |
|
|
|
|
|
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 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
|
|
|
|
|
Full Usage:
this.Log10InPlace
Modifiers: abstract |
|
|
|
Full Usage:
this.LogInPlace
Modifiers: abstract |
|
|
|
|
|
|
|
|
|
|
|
Full Usage:
this.MaxIndexT
Returns: int[]
Modifiers: abstract |
|
|
|
|
|
|
|
|
Gets a tensor containing values and indexes of a maximum value of the tensor reducing along the given dimension
|
|
|
|
|
|
|
Full Usage:
this.MinIndexT
Returns: int[]
Modifiers: abstract |
|
|
Gets a tensor containing values and indexes of a minimum value of the tensor reducing along the given dimension
|
|
|
|
|
|
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
|
|
|
|
Returns 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 |
|
|
|
Full Usage:
this.Nelement
Returns: int
Modifiers: abstract |
|
|
|
|
|
|
Gets a scalar one tensor for the given configuration settings, defaulting to the configuration settings of the object tensor
|
Full Usage:
this.OnesInPlace
Modifiers: abstract |
|
Gets a tensor filled with one values for the given shape and configuration settings, defaulting to the configuration settings of the object tensor
|
|
|
|
|
Returns the element-wise exponentiation of a scalar and a tensor, where the scalar is logically broadcast to the same shape as the tensor
|
|
|
|
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
|
|
|
|
Returns 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 |
|
Full Usage:
this.RandomIntInPlace
Parameters:
int
high : int
Modifiers: abstract |
|
Gets a tensor filled with random integer values from the given range for the given shape and configuration settings, defaulting to the configuration settings of the object tensor
|
|
Gets a tensor filled with random values for the given shape and configuration settings, defaulting to the configuration settings of the object tensor
|
|
Full Usage:
this.RandomNormalInPlace
Modifiers: abstract |
|
Gets a tensor filled with random values from a normal distribution for the given shape and configuration settings, defaulting to the configuration settings of the object tensor
|
|
Full Usage:
this.ReluInPlace
Modifiers: abstract |
|
|
|
Full Usage:
this.RoundInPlace
Modifiers: abstract |
|
|
|
|
Returns a tensor with given destination shape where values are copied from the current tensor to locations specified by the dimension and indices.
|
Full Usage:
this.SetMutable
Modifiers: abstract |
|
|
|
Full Usage:
this.SigmoidInPlace
Modifiers: abstract |
|
|
|
Full Usage:
this.SignInPlace
Modifiers: abstract |
|
|
|
Full Usage:
this.SinInPlace
Modifiers: abstract |
|
|
|
Full Usage:
this.SinhInPlace
Modifiers: abstract |
|
|
|
Full Usage:
this.SoftplusInPlace
Modifiers: abstract |
|
|
|
|
Returns the solution of single a square system of linear equations with a unique solution or a batch of several such systems
|
Full Usage:
this.SplitT
Parameters:
int[]
dim : int
Returns: RawTensor[]
Modifiers: abstract |
|
Full Usage:
this.SqrtInPlace
Modifiers: abstract |
|
|
|
|
Returns the tensor with the same values and the given dimension removed. The given dimension must be of size 1.
|
|
|
|
Returns the element-wise subtraction of the scalar and a tensor, where the scalar is logically broadcast to the same shape as the tensor
|
|
|
|
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
|
|
|
|
Returns 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 |
|
|
|
Full Usage:
this.TanhInPlace
Modifiers: abstract |
|
|
|
|
|
|
|
Full Usage:
this.ToValues
Returns: obj
Modifiers: abstract |
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 tensor with the same values and a dimension of size 1 inserted before the given dimension.
|
|
|
|
|
|
Gets a zero tensor for the given configuration settings, defaulting to the configuration settings of the object tensor
|
Full Usage:
this.ZerosInPlace
Modifiers: abstract |
|
Gets a tensor filled with zero values for the given shape and configuration settings, defaulting to the configuration settings of the object tensor
|
Static member | Description |
|
The value may be a scalar, an array, or an array of tupled objects. If the
|
|
|
|
|
|
|
|
|
|
|
|
|
Gets a tensor filled with random integer values from the given range for the given shape and configuration
|
|
Gets a tensor filled with random values from the normal distribution for the given shape and configuration
|
|
|
|
|
© Copyright 2021, DiffSharp Contributors.