RawTensor Type

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.

Constructors

Constructor Description

RawTensor()

Full Usage: RawTensor()

Returns: RawTensor
Returns: RawTensor

Instance members

Instance member Description

this.AbsInPlace

Full Usage: this.AbsInPlace

Modifiers: abstract

Modifies the tensor by the element-wise absolute value of the tensor

this.AbsT

Full Usage: this.AbsT

Returns: RawTensor
Modifiers: abstract

Returns the element-wise absolute value of the tensor

Returns: RawTensor

this.AcosInPlace

Full Usage: this.AcosInPlace

Modifiers: abstract

Modifies the tensor by the element-wise cos of the tensor

this.AcosT

Full Usage: this.AcosT

Returns: RawTensor
Modifiers: abstract

Returns the element-wise cos of the tensor

Returns: RawTensor

this.AddInPlace

Full Usage: this.AddInPlace

Parameters:
Modifiers: abstract

Modifies the tensor by the element-wise addition of the two tensors

arg0 : RawTensor
?alpha : scalar

this.AddScalarInPlace

Full Usage: this.AddScalarInPlace

Parameters:
Modifiers: abstract

Modifies the tensor by the element-wise addition of two scalars

b : scalar

this.AddSliceInPlace

Full Usage: this.AddSliceInPlace

Parameters:
Modifiers: abstract

Adds a slice of t2 at the given location to the tensor

location : int[]
t2 : RawTensor

this.AddTT

Full Usage: this.AddTT

Parameters:
Returns: RawTensor
Modifiers: abstract

Returns the element-wise addition of the two tensors

arg0 : RawTensor
?alpha : scalar
Returns: RawTensor

this.AddTT0

Full Usage: this.AddTT0

Parameters:
Returns: RawTensor
Modifiers: abstract

Returns the element-wise addition of a tensor and a scalar

b : scalar
?alpha : scalar
Returns: RawTensor

this.AddTTSlice

Full Usage: this.AddTTSlice

Parameters:
Returns: RawTensor
Modifiers: abstract

Adds a slice of t2 at the given location to the tensor

location : int[]
t2 : RawTensor
Returns: RawTensor

this.AllClose

Full Usage: this.AllClose

Parameters:
    t2 : 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.

t2 : RawTensor
relativeTolerance : float
absoluteTolerance : float
Returns: bool

this.AsinInPlace

Full Usage: this.AsinInPlace

Modifiers: abstract

Modifies the tensor by the element-wise asin of the tensor

this.AsinT

Full Usage: this.AsinT

Returns: RawTensor
Modifiers: abstract

Returns the element-wise asin of the tensor

Returns: RawTensor

this.AtanInPlace

Full Usage: this.AtanInPlace

Modifiers: abstract

Modifies the tensor by the element-wise atan of the tensor

this.AtanT

Full Usage: this.AtanT

Returns: RawTensor
Modifiers: abstract

Returns the element-wise atan of the tensor

Returns: RawTensor

this.AvgPool1D

Full Usage: this.AvgPool1D

Parameters:
    kernelSize : int
    stride : int
    padding : int

Returns: RawTensor
Modifiers: abstract

Returns the 1D avgpool of a tensor

kernelSize : int
stride : int
padding : int
Returns: RawTensor

this.AvgPool2D

Full Usage: this.AvgPool2D

Parameters:
    kernelSize : int[]
    stride : int[]
    padding : int[]

Returns: RawTensor
Modifiers: abstract

Returns the 2D avgpool of a tensor

kernelSize : int[]
stride : int[]
padding : int[]
Returns: RawTensor

this.AvgPool3D

Full Usage: this.AvgPool3D

Parameters:
    kernelSize : int[]
    stride : int[]
    padding : int[]

Returns: RawTensor
Modifiers: abstract

Returns the 2D avgpool of a tensor

kernelSize : int[]
stride : int[]
padding : int[]
Returns: RawTensor

this.AvgPoolReverse1D

Full Usage: this.AvgPoolReverse1D

Parameters:
    originalInput : RawTensor
    kernelSize : 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

originalInput : RawTensor
kernelSize : int
stride : int
padding : int
Returns: RawTensor

this.AvgPoolReverse2D

Full Usage: this.AvgPoolReverse2D

Parameters:
    originalInput : RawTensor
    kernelSize : int[]
    stride : int[]
    padding : int[]

Returns: RawTensor
Modifiers: abstract

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

originalInput : RawTensor
kernelSize : int[]
stride : int[]
padding : int[]
Returns: RawTensor

this.AvgPoolReverse3D

Full Usage: this.AvgPoolReverse3D

Parameters:
    originalInput : RawTensor
    kernelSize : int[]
    stride : int[]
    padding : int[]

Returns: RawTensor
Modifiers: abstract

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

originalInput : RawTensor
kernelSize : int[]
stride : int[]
padding : int[]
Returns: RawTensor

this.BMMTT

Full Usage: this.BMMTT

Parameters:
Returns: RawTensor
Modifiers: abstract

Returns the batched matrix multiplication of two tensors

t2 : RawTensor
Returns: RawTensor

this.Backend

Full Usage: this.Backend

Returns: Backend
Modifiers: abstract

Gets the backend for the tensor

Returns: Backend

this.Cast

Full Usage: this.Cast

Parameters:
Returns: RawTensor
Modifiers: abstract

Returns a tensor where the elements have each been cast to the given tensor element storage type.

dtype : Dtype
Returns: RawTensor

this.CatTs

Full Usage: this.CatTs

Parameters:
Returns: RawTensor
Modifiers: abstract

Concatenate the given tensors along the given dimension

tensors : RawTensor[]
dim : int
Returns: RawTensor

this.CeilInPlace

Full Usage: this.CeilInPlace

Modifiers: abstract

Modifies the tensor by the element-wise integer ceiling of the tensor

this.CeilT

Full Usage: this.CeilT

Returns: RawTensor
Modifiers: abstract

Returns the element-wise integer ceiling of the tensor

Returns: RawTensor

this.ClampInPlace

Full Usage: this.ClampInPlace

Parameters:
Modifiers: abstract

Modifies the tensor by with values constrained by the corresponding elements in the low/high tensors.

low : RawTensor
high : RawTensor

this.ClampT

Full Usage: this.ClampT

Parameters:
Returns: RawTensor
Modifiers: abstract

Returns a tensor with values constrained by the corresponding elements in the low/high tensors.

low : RawTensor
high : RawTensor
Returns: RawTensor

this.Clone

Full Usage: this.Clone

Returns: RawTensor
Modifiers: abstract

Clone the underlying storage of the tensor.

Returns: RawTensor

this.ComputeHash

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.

Returns: int

this.Conv1D

Full Usage: this.Conv1D

Parameters:
    kernel : RawTensor
    stride : int
    padding : int

Returns: RawTensor
Modifiers: abstract

Returns the 1D convolution of the tensor

kernel : RawTensor
stride : int
padding : int
Returns: RawTensor

this.Conv2D

Full Usage: this.Conv2D

Parameters:
    kernel : RawTensor
    strides : int[]
    padding : int[]

Returns: RawTensor
Modifiers: abstract

Returns the 2D convolution of the tensor

kernel : RawTensor
strides : int[]
padding : int[]
Returns: RawTensor

this.Conv3D

Full Usage: this.Conv3D

Parameters:
    kernel : RawTensor
    strides : int[]
    padding : int[]

Returns: RawTensor
Modifiers: abstract

Returns the 3D convolution of the tensor

kernel : RawTensor
strides : int[]
padding : int[]
Returns: RawTensor

this.CosInPlace

Full Usage: this.CosInPlace

Modifiers: abstract

Modifies the tensor by the element-wise cosine of the tensor

this.CosT

Full Usage: this.CosT

Returns: RawTensor
Modifiers: abstract

Returns the element-wise cosine of the tensor

Returns: RawTensor

this.CoshInPlace

Full Usage: this.CoshInPlace

Modifiers: abstract

Modifies the tensor by the element-wise cosh of the tensor

this.CoshT

Full Usage: this.CoshT

Returns: RawTensor
Modifiers: abstract

Returns the element-wise cosh of the tensor

Returns: RawTensor

this.CreateLike

Full Usage: this.CreateLike

Parameters:
Returns: RawTensor

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.

values : obj
?dtype : Dtype
?device : Device
?backend : Backend
Returns: RawTensor

this.DetT

Full Usage: this.DetT

Returns: RawTensor
Modifiers: abstract

Returns the determinant of a square matrix

Returns: RawTensor

this.Device

Full Usage: this.Device

Returns: Device
Modifiers: abstract

Gets the device for the tensor

Returns: Device

this.DeviceType

Full Usage: this.DeviceType

Returns: DeviceType
Modifiers: abstract

Gets the device type for the tensor

Returns: DeviceType

this.DilateT

Full Usage: this.DilateT

Parameters:
    dilations : int[]

Returns: RawTensor
Modifiers: abstract

Returns the dilation of the tensor using the given dilations parameters

dilations : int[]
Returns: RawTensor

this.Dim

Full Usage: this.Dim

Returns: int
Modifiers: abstract

Gets the dimensionality of the tensor

Returns: int

this.DivFromT0T

Full Usage: this.DivFromT0T

Parameters:
Returns: RawTensor
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

t1 : scalar
Returns: RawTensor

this.DivInPlace

Full Usage: this.DivInPlace

Parameters:
Modifiers: abstract

Modifies the tensor by the element-wise division of two tensors

t2 : RawTensor

this.DivScalarInPlace

Full Usage: this.DivScalarInPlace

Parameters:
Modifiers: abstract

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

t2 : scalar

this.DivTT

Full Usage: this.DivTT

Parameters:
Returns: RawTensor
Modifiers: abstract

Returns the element-wise division of two tensors

t2 : RawTensor
Returns: RawTensor

this.DivTT0

Full Usage: this.DivTT0

Parameters:
Returns: RawTensor
Modifiers: abstract

Returns the element-wise division of a tensor by a scalar, where the scalar is logically broadcast to the same shape as the tensor

t2 : scalar
Returns: RawTensor

this.Dtype

Full Usage: this.Dtype

Returns: Dtype
Modifiers: abstract

Gets the element storage type for the tensor

Returns: Dtype

this.EmptyLike

Full Usage: this.EmptyLike

Parameters:
Returns: RawTensor

Gets a tensor filled with arbitrary values for the given shape and configuration settings, defaulting to the configuration settings of the object tensor

shape : Shape
?dtype : Dtype
?device : Device
?backend : Backend
Returns: RawTensor

this.EqInPlace

Full Usage: this.EqInPlace

Parameters:
Modifiers: abstract

Modifies the tensor by comparing each element pairwise with the corresponding element in t2

t2 : RawTensor

this.EqTT

Full Usage: this.EqTT

Parameters:
Returns: RawTensor
Modifiers: abstract

Returns a boolean tensor comparing each element pairwise with the corresponding element in t2

t2 : RawTensor
Returns: RawTensor

this.Equals

Full Usage: this.Equals

Parameters:
Returns: bool
Modifiers: abstract

Compare two tensors for equality

t2 : RawTensor
Returns: bool

this.ExpInPlace

Full Usage: this.ExpInPlace

Modifiers: abstract

Modifies the tensor by the element-wise natural exponentiation of the tensor

this.ExpT

Full Usage: this.ExpT

Returns: RawTensor
Modifiers: abstract

Returns the element-wise natural exponentiation of the tensor

Returns: RawTensor

this.Expand

Full Usage: this.Expand

Parameters:
Returns: RawTensor
Modifiers: abstract

Expand the shape of the tensor.

newShape : Shape
Returns: RawTensor

this.FlipT

Full Usage: this.FlipT

Parameters:
    dims : int[]

Returns: RawTensor
Modifiers: abstract

Returns the flip of the tensor along the given dimensions

dims : int[]
Returns: RawTensor

this.FloorInPlace

Full Usage: this.FloorInPlace

Modifiers: abstract

Modifies the tensor by the element-wise integer floor of the tensor

this.FloorT

Full Usage: this.FloorT

Returns: RawTensor
Modifiers: abstract

Returns the element-wise integer floor of the tensor

Returns: RawTensor

this.FullLike

Full Usage: this.FullLike

Parameters:
Returns: RawTensor

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

shape : Shape
value : scalar
?dtype : Dtype
?device : Device
?backend : Backend
Returns: RawTensor

this.GatherT

Full Usage: this.GatherT

Parameters:
Returns: RawTensor
Modifiers: abstract

Returns a tensor selecting the given indices from the given dimension and stacking those in the order specified.

dim : int
indices : RawTensor
Returns: RawTensor

this.GeInPlace

Full Usage: this.GeInPlace

Parameters:
Modifiers: abstract

Modifies the tensor by comparing each element pairwise with the corresponding element in t2

t2 : RawTensor

this.GeTT

Full Usage: this.GeTT

Parameters:
Returns: RawTensor
Modifiers: abstract

Returns a boolean tensor comparing each element pairwise with the corresponding element in t2

t2 : RawTensor
Returns: RawTensor

this.GetItem

Full Usage: this.GetItem

Parameters:
    indexes : int[]

Returns: scalar
Modifiers: abstract

Gets a .NET object representing the value of the tensor at the given indexes

indexes : int[]
Returns: scalar

this.GetSlice

Full Usage: this.GetSlice

Parameters:
    fullBounds : 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.

fullBounds : 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

this.GtInPlace

Full Usage: this.GtInPlace

Parameters:
Modifiers: abstract

Modifies the tensor by comparing each element pairwise with the corresponding element in t2

t2 : RawTensor

this.GtTT

Full Usage: this.GtTT

Parameters:
Returns: RawTensor
Modifiers: abstract

Returns a boolean tensor comparing each element pairwise with the corresponding element in t2

t2 : RawTensor
Returns: RawTensor

this.Handle

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: obj

this.InverseT

Full Usage: this.InverseT

Returns: RawTensor
Modifiers: abstract

Returns the inverse of a single square matrix (2d tensor) or a batch of square matrices (3d tensor)

Returns: RawTensor

this.IsInfT

Full Usage: this.IsInfT

Returns: RawTensor
Modifiers: abstract

Returns a boolean tensor where each element indicates if the corresponding element in the tensor is an infinity value

Returns: RawTensor

this.IsMutable

Full Usage: this.IsMutable

Returns: bool
Modifiers: abstract
Returns: bool

this.IsNaNT

Full Usage: this.IsNaNT

Returns: RawTensor
Modifiers: abstract

Returns a boolean tensor where each element indicates if the corresponding element in the tensor is a NaN value

Returns: RawTensor

this.LeInPlace

Full Usage: this.LeInPlace

Parameters:
Modifiers: abstract

Modifies the tensor by comparing each element pairwise with the corresponding element in t2

t2 : RawTensor

this.LeTT

Full Usage: this.LeTT

Parameters:
Returns: RawTensor
Modifiers: abstract

Returns a boolean tensor comparing each element pairwise with the corresponding element in t2

t2 : RawTensor
Returns: RawTensor

this.Log10InPlace

Full Usage: this.Log10InPlace

Modifiers: abstract

Modifies the tensor by the element-wise base10 logarithm of the tensor

this.Log10T

Full Usage: this.Log10T

Returns: RawTensor
Modifiers: abstract

Returns the element-wise base10 logarithm of the tensor

Returns: RawTensor

this.LogInPlace

Full Usage: this.LogInPlace

Modifiers: abstract

Modifies the tensor by the element-wise natural logarithm of the tensor

this.LogT

Full Usage: this.LogT

Returns: RawTensor
Modifiers: abstract

Returns the element-wise natural logarithm of the tensor

Returns: RawTensor

this.LtInPlace

Full Usage: this.LtInPlace

Parameters:
Modifiers: abstract

Modifies the tensor by comparing each element pairwise with the corresponding element in t2

t2 : RawTensor

this.LtTT

Full Usage: this.LtTT

Parameters:
Returns: RawTensor
Modifiers: abstract

Returns a boolean tensor comparing each element pairwise with the corresponding element in t2

t2 : RawTensor
Returns: RawTensor

this.MatMulInPlace

Full Usage: this.MatMulInPlace

Parameters:
Modifiers: abstract

Modifies the tensor by the matrix multiplication of two tensors

t2 : RawTensor

this.MatMulTT

Full Usage: this.MatMulTT

Parameters:
Returns: RawTensor
Modifiers: abstract

Returns the matrix multiplication of two tensors

t2 : RawTensor
Returns: RawTensor

this.MaxIndexT

Full Usage: this.MaxIndexT

Returns: int[]
Modifiers: abstract

Gets the index of a maximum value of the tensor

Returns: int[]

this.MaxPool1D

Full Usage: this.MaxPool1D

Parameters:
    kernelSize : int
    stride : int
    padding : int

Returns: RawTensor * RawTensor
Modifiers: abstract

Returns the 1D maxpool of a tensor and its chosen maximum indices

kernelSize : int
stride : int
padding : int
Returns: RawTensor * RawTensor

this.MaxPool2D

Full Usage: this.MaxPool2D

Parameters:
    kernelSize : int[]
    strides : int[]
    padding : int[]

Returns: RawTensor * RawTensor
Modifiers: abstract

Returns the 2D maxpool of a tensor and its chosen maximum indices

kernelSize : int[]
strides : int[]
padding : int[]
Returns: RawTensor * RawTensor

this.MaxPool3D

Full Usage: this.MaxPool3D

Parameters:
    kernelSize : int[]
    strides : int[]
    padding : int[]

Returns: RawTensor * RawTensor
Modifiers: abstract

Returns the 3D maxpool of a tensor and its chosen maximum indices

kernelSize : int[]
strides : int[]
padding : int[]
Returns: RawTensor * RawTensor

this.MaxReduceT

Full Usage: this.MaxReduceT

Parameters:
    dim : int
    keepdim : bool

Returns: RawTensor * RawTensor
Modifiers: abstract

Gets a tensor containing values and indexes of a maximum value of the tensor reducing along the given dimension

dim : int
keepdim : bool
Returns: RawTensor * RawTensor

this.MaxUnpool1D

Full Usage: this.MaxUnpool1D

Parameters:
Returns: RawTensor
Modifiers: abstract

Returns the 1D maxunpool of a tensor using the given indices for locations of maximums

indices : RawTensor
outputSize : int[]
Returns: RawTensor

this.MaxUnpool2D

Full Usage: this.MaxUnpool2D

Parameters:
Returns: RawTensor
Modifiers: abstract

Returns the 2D maxunpool of a tensor using the given indices for locations of maximums

indices : RawTensor
outputSize : int[]
Returns: RawTensor

this.MaxUnpool3D

Full Usage: this.MaxUnpool3D

Parameters:
Returns: RawTensor
Modifiers: abstract

Returns the 3D maxunpool of a tensor using the given indices for locations of maximums

indices : RawTensor
outputSize : int[]
Returns: RawTensor

this.MinIndexT

Full Usage: this.MinIndexT

Returns: int[]
Modifiers: abstract

Gets the index of a minimum value of the tensor

Returns: int[]

this.MinReduceT

Full Usage: this.MinReduceT

Parameters:
    dim : int
    keepdim : bool

Returns: RawTensor * RawTensor
Modifiers: abstract

Gets a tensor containing values and indexes of a minimum value of the tensor reducing along the given dimension

dim : int
keepdim : bool
Returns: RawTensor * RawTensor

this.MoveTo

Full Usage: this.MoveTo

Parameters:
Returns: RawTensor
Modifiers: abstract

Returns a tensor moved to the given device.

device : Device
Returns: RawTensor

this.MulInPlace

Full Usage: this.MulInPlace

Parameters:
Modifiers: abstract

Modifies the tensor by the element-wise multiplication of two tensors

t2 : RawTensor

this.MulScalarInPlace

Full Usage: this.MulScalarInPlace

Parameters:
Modifiers: abstract

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

b : scalar

this.MulTT

Full Usage: this.MulTT

Parameters:
Returns: RawTensor
Modifiers: abstract

Returns the element-wise multiplication of two tensors

t2 : RawTensor
Returns: RawTensor

this.MulTT0

Full Usage: this.MulTT0

Parameters:
Returns: RawTensor
Modifiers: abstract

Returns the element-wise multiplication of a tensor and a scalar, where the scalar is logically broadcast to the same shape as the tensor

t2 : scalar
Returns: RawTensor

this.NegInPlace

Full Usage: this.NegInPlace

Modifiers: abstract

Modifies the tensor by the element-wise negation of the tensor

this.NegT

Full Usage: this.NegT

Returns: RawTensor
Modifiers: abstract

Returns the element-wise negation of the tensor

Returns: RawTensor

this.Nelement

Full Usage: this.Nelement

Returns: int
Modifiers: abstract

Gets the number of elements in the tensor

Returns: int

this.NeqInPlace

Full Usage: this.NeqInPlace

Parameters:
Modifiers: abstract

Modifies the tensor by comparing each element pairwise with the corresponding element in t2

t2 : RawTensor

this.NeqTT

Full Usage: this.NeqTT

Parameters:
Returns: RawTensor
Modifiers: abstract

Returns a boolean tensor comparing each element pairwise with the corresponding element in t2

t2 : RawTensor
Returns: RawTensor

this.OneLike

Full Usage: this.OneLike

Parameters:
Returns: RawTensor

Gets a scalar one tensor for the given configuration settings, defaulting to the configuration settings of the object tensor

?dtype : Dtype
?device : Device
?backend : Backend
Returns: RawTensor

this.OnesInPlace

Full Usage: this.OnesInPlace

Modifiers: abstract

Modifies the tensor by setting all values to one

this.OnesLike

Full Usage: this.OnesLike

Parameters:
Returns: RawTensor

Gets a tensor filled with one values for the given shape and configuration settings, defaulting to the configuration settings of the object tensor

shape : Shape
?dtype : Dtype
?device : Device
?backend : Backend
Returns: RawTensor

this.PermuteT

Full Usage: this.PermuteT

Parameters:
    permutation : int[]

Returns: RawTensor
Modifiers: abstract

Returns a view of the original tensor with its dimensions permuted

permutation : int[]
Returns: RawTensor

this.PowFromT0T

Full Usage: this.PowFromT0T

Parameters:
Returns: RawTensor
Modifiers: abstract

Returns the element-wise exponentiation of a scalar and a tensor, where the scalar is logically broadcast to the same shape as the tensor

t1 : scalar
Returns: RawTensor

this.PowInPlace

Full Usage: this.PowInPlace

Parameters:
Modifiers: abstract

Modifies the tensor by the element-wise exponentiation of two tensors

t2 : RawTensor

this.PowScalarInPlace

Full Usage: this.PowScalarInPlace

Parameters:
Modifiers: abstract

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

t2 : scalar

this.PowTT

Full Usage: this.PowTT

Parameters:
Returns: RawTensor
Modifiers: abstract

Returns the element-wise exponentiation of two tensors

t2 : RawTensor
Returns: RawTensor

this.PowTT0

Full Usage: this.PowTT0

Parameters:
Returns: RawTensor
Modifiers: abstract

Returns the element-wise exponentiation of a tensor and a scalar, where the scalar is logically broadcast to the same shape as the tensor

t2 : scalar
Returns: RawTensor

this.Print

Full Usage: this.Print

Parameters:
    ?postfix : string

Returns: string
?postfix : string
Returns: string

this.RandomInPlace

Full Usage: this.RandomInPlace

Modifiers: abstract

Modifies the tensor by setting it to random values taken from a uniform distribution in [0, 1).

this.RandomIntInPlace

Full Usage: this.RandomIntInPlace

Parameters:
    low : int
    high : int

Modifiers: abstract

Gets a tensor filled with random integers from the given range

low : int
high : int

this.RandomIntLike

Full Usage: this.RandomIntLike

Parameters:
Returns: RawTensor

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

shape : Shape
low : int
high : int
?dtype : Dtype
?device : Device
?backend : Backend
Returns: RawTensor

this.RandomLike

Full Usage: this.RandomLike

Parameters:
Returns: RawTensor

Gets a tensor filled with random values for the given shape and configuration settings, defaulting to the configuration settings of the object tensor

shape : Shape
?dtype : Dtype
?device : Device
?backend : Backend
Returns: RawTensor

this.RandomNormalInPlace

Full Usage: this.RandomNormalInPlace

Modifiers: abstract

Modifies the tensor by setting all values taken from a normal distribution with mean 0 and variance 1.

this.RandomNormalLike

Full Usage: this.RandomNormalLike

Parameters:
Returns: RawTensor

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

shape : Shape
?dtype : Dtype
?device : Device
?backend : Backend
Returns: RawTensor

this.ReluInPlace

Full Usage: this.ReluInPlace

Modifiers: abstract

Modifies the tensor by the element-wise ReLU of the tensor

this.ReluT

Full Usage: this.ReluT

Returns: RawTensor
Modifiers: abstract

Returns the element-wise ReLU of the tensor

Returns: RawTensor

this.RoundInPlace

Full Usage: this.RoundInPlace

Modifiers: abstract

Modifies the tensor by the element-wise rounding of the tensor

this.RoundT

Full Usage: this.RoundT

Returns: RawTensor
Modifiers: abstract

Returns the element-wise rounding of the tensor

Returns: RawTensor

this.ScatterT

Full Usage: this.ScatterT

Parameters:
Returns: RawTensor
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.

dim : int
indices : RawTensor
destinationShape : Shape
Returns: RawTensor

this.SetMutable

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.

this.Shape

Full Usage: this.Shape

Returns: Shape
Modifiers: abstract

Gets the shape of the tensor

Returns: Shape

this.SigmoidInPlace

Full Usage: this.SigmoidInPlace

Modifiers: abstract

Modifies the tensor by the element-wise sigmoid of the tensor

this.SigmoidT

Full Usage: this.SigmoidT

Returns: RawTensor
Modifiers: abstract

Returns the element-wise sigmoid of the tensor

Returns: RawTensor

this.SignInPlace

Full Usage: this.SignInPlace

Modifiers: abstract

Modifies the tensor by the element-wise sign of the tensor

this.SignT

Full Usage: this.SignT

Returns: RawTensor
Modifiers: abstract

Returns the element-wise sign of the tensor

Returns: RawTensor

this.SinInPlace

Full Usage: this.SinInPlace

Modifiers: abstract

Modifies the tensor by the element-wise sine of the tensor

this.SinT

Full Usage: this.SinT

Returns: RawTensor
Modifiers: abstract

Returns the element-wise sine of the tensor

Returns: RawTensor

this.SinhInPlace

Full Usage: this.SinhInPlace

Modifiers: abstract

Modifies the tensor by the element-wise sinh of the tensor

this.SinhT

Full Usage: this.SinhT

Returns: RawTensor
Modifiers: abstract

Returns the element-wise sinh of the tensor

Returns: RawTensor

this.SoftplusInPlace

Full Usage: this.SoftplusInPlace

Modifiers: abstract

Modifies the tensor by the element-wise softplus of the tensor

this.SoftplusT

Full Usage: this.SoftplusT

Returns: RawTensor
Modifiers: abstract

Returns the element-wise softplus of the tensor

Returns: RawTensor

this.SolveTT

Full Usage: this.SolveTT

Parameters:
Returns: RawTensor
Modifiers: abstract

Returns the solution of single a square system of linear equations with a unique solution or a batch of several such systems

arg0 : RawTensor
Returns: RawTensor

this.SplitT

Full Usage: this.SplitT

Parameters:
    sizes : int[]
    dim : int

Returns: RawTensor[]
Modifiers: abstract

Split the given tensors along the given dimensions

sizes : int[]
dim : int
Returns: RawTensor[]

this.SqrtInPlace

Full Usage: this.SqrtInPlace

Modifiers: abstract

Modifies the tensor by the element-wise square root of the tensor

this.SqrtT

Full Usage: this.SqrtT

Returns: RawTensor
Modifiers: abstract

Returns the element-wise square root of the tensor

Returns: RawTensor

this.SqueezeT

Full Usage: this.SqueezeT

Parameters:
    dim : int

Returns: RawTensor
Modifiers: abstract

Returns the tensor with the same values and the given dimension removed. The given dimension must be of size 1.

dim : int
Returns: RawTensor

this.StackTs

Full Usage: this.StackTs

Parameters:
Returns: RawTensor
Modifiers: abstract

Stack the given tensors along the given dimension

tensors : RawTensor[]
dim : int
Returns: RawTensor

this.SubFromT0T

Full Usage: this.SubFromT0T

Parameters:
Returns: RawTensor
Modifiers: abstract

Returns the element-wise subtraction of the scalar and a tensor, where the scalar is logically broadcast to the same shape as the tensor

t1 : scalar
Returns: RawTensor

this.SubInPlace

Full Usage: this.SubInPlace

Parameters:
Modifiers: abstract

Modifies the tensor by the element-wise subtraction of two tensors

t2 : RawTensor

this.SubScalarInPlace

Full Usage: this.SubScalarInPlace

Parameters:
Modifiers: abstract

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

b : scalar

this.SubTT

Full Usage: this.SubTT

Parameters:
Returns: RawTensor
Modifiers: abstract

Returns the element-wise subtraction of two tensors

t2 : RawTensor
Returns: RawTensor

this.SubTT0

Full Usage: this.SubTT0

Parameters:
Returns: RawTensor
Modifiers: abstract

Returns the element-wise subtraction of the tensor and a scalar, where the scalar is logically broadcast to the same shape as the tensor

t2 : scalar
Returns: RawTensor

this.SumT

Full Usage: this.SumT

Parameters:
Returns: RawTensor
Modifiers: abstract

Returns the scalar tensor for the summation of all elements in the tensor

?resultType : Dtype
Returns: RawTensor

this.SumTDim

Full Usage: this.SumTDim

Parameters:
    dim : int
    ?resultType : Dtype

Returns: RawTensor
Modifiers: abstract

Returns the tensor representing the summation of the tensor along the given dimension

dim : int
?resultType : Dtype
Returns: RawTensor

this.TanInPlace

Full Usage: this.TanInPlace

Modifiers: abstract

Modifies the tensor by the element-wise tangent of the tensor

this.TanT

Full Usage: this.TanT

Returns: RawTensor
Modifiers: abstract

Returns the element-wise tangent of the tensor

Returns: RawTensor

this.TanhInPlace

Full Usage: this.TanhInPlace

Modifiers: abstract

Modifies the tensor by the element-wise tanh of the tensor

this.TanhT

Full Usage: this.TanhT

Returns: RawTensor
Modifiers: abstract

Returns the element-wise tanh of the tensor

Returns: RawTensor

this.ToArray

Full Usage: this.ToArray

Returns: Array

Returns a .NET array object for the values of a non-scalar tensor

Returns: Array

this.ToScalar

Full Usage: this.ToScalar

Returns: scalar
Modifiers: abstract

Gets a .NET object representing the value of a scalar tensor

Returns: scalar

this.ToValues

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.

Returns: obj

this.TransposeT

Full Usage: this.TransposeT

Parameters:
    dim0 : int
    dim1 : int

Returns: RawTensor
Modifiers: abstract

Returns the transpose of the tensor between the given dimensions

dim0 : int
dim1 : int
Returns: RawTensor

this.TransposeT2

Full Usage: this.TransposeT2

Returns: RawTensor
Modifiers: abstract

Returns the transpose of a 2D tensor

Returns: RawTensor

this.UndilateT

Full Usage: this.UndilateT

Parameters:
    dilations : int[]

Returns: RawTensor
Modifiers: abstract

Returns the reverse of the dilation of the tensor using the given dilations parameters

dilations : int[]
Returns: RawTensor

this.UnsqueezeT

Full Usage: this.UnsqueezeT

Parameters:
    dim : int

Returns: RawTensor
Modifiers: abstract

Returns the tensor with the same values and a dimension of size 1 inserted before the given dimension.

dim : int
Returns: RawTensor

this.UnstackT

Full Usage: this.UnstackT

Parameters:
    dim : int

Returns: RawTensor[]
Modifiers: abstract

Unstack the given tensors along the given dimension

dim : int
Returns: RawTensor[]

this.ViewT

Full Usage: this.ViewT

Parameters:
Returns: RawTensor
Modifiers: abstract

Returns the tensor with the same values viewed as a different shape

shape : Shape
Returns: RawTensor

this.ZeroLike

Full Usage: this.ZeroLike

Parameters:
Returns: RawTensor

Gets a zero tensor for the given configuration settings, defaulting to the configuration settings of the object tensor

?dtype : Dtype
?device : Device
?backend : Backend
Returns: RawTensor

this.ZerosInPlace

Full Usage: this.ZerosInPlace

Modifiers: abstract

Modifies the tensor by setting all values to zero

this.ZerosLike

Full Usage: this.ZerosLike

Parameters:
Returns: RawTensor

Gets a tensor filled with zero values for the given shape and configuration settings, defaulting to the configuration settings of the object tensor

shape : Shape
?dtype : Dtype
?device : Device
?backend : Backend
Returns: RawTensor

Static members

Static member Description

RawTensor.Create(values, ?dtype, ?device, ?backend)

Full Usage: RawTensor.Create(values, ?dtype, ?device, ?backend)

Parameters:
Returns: RawTensor

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 dtype is not specified then it is inferred from the .NET type of the object.

values : obj
?dtype : Dtype
?device : Device
?backend : Backend
Returns: RawTensor

RawTensor.CreateFromFlatArray(values, shape, ?dtype, ?device, ?backend)

Full Usage: RawTensor.CreateFromFlatArray(values, shape, ?dtype, ?device, ?backend)

Parameters:
Returns: RawTensor
values : Array
shape : Shape
?dtype : Dtype
?device : Device
?backend : Backend
Returns: RawTensor

RawTensor.Empty(shape, ?dtype, ?device, ?backend)

Full Usage: RawTensor.Empty(shape, ?dtype, ?device, ?backend)

Parameters:
Returns: RawTensor

Gets a tensor containing arbitrary values for the given shape and configuration

shape : Shape
?dtype : Dtype
?device : Device
?backend : Backend
Returns: RawTensor

RawTensor.Full(shape, value, ?dtype, ?device, ?backend)

Full Usage: RawTensor.Full(shape, value, ?dtype, ?device, ?backend)

Parameters:
Returns: RawTensor

Gets a tensor filled with the given value for the given shape and configuration

shape : Shape
value : scalar
?dtype : Dtype
?device : Device
?backend : Backend
Returns: RawTensor

RawTensor.One(?dtype, ?device, ?backend)

Full Usage: RawTensor.One(?dtype, ?device, ?backend)

Parameters:
Returns: RawTensor

Gets the scalar 1 tensor for the given configuration

?dtype : Dtype
?device : Device
?backend : Backend
Returns: RawTensor

RawTensor.Ones(shape, ?dtype, ?device, ?backend)

Full Usage: RawTensor.Ones(shape, ?dtype, ?device, ?backend)

Parameters:
Returns: RawTensor

Gets a tensor filled with 1 values for the given shape and configuration

shape : Shape
?dtype : Dtype
?device : Device
?backend : Backend
Returns: RawTensor

RawTensor.Random(shape, ?dtype, ?device, ?backend)

Full Usage: RawTensor.Random(shape, ?dtype, ?device, ?backend)

Parameters:
Returns: RawTensor

Gets a tensor filled with random values for the given shape and configuration

shape : Shape
?dtype : Dtype
?device : Device
?backend : Backend
Returns: RawTensor

RawTensor.RandomInt(shape, low, high, ?dtype, ?device, ?backend)

Full Usage: RawTensor.RandomInt(shape, low, high, ?dtype, ?device, ?backend)

Parameters:
Returns: RawTensor

Gets a tensor filled with random integer values from the given range for the given shape and configuration

shape : Shape
low : int
high : int
?dtype : Dtype
?device : Device
?backend : Backend
Returns: RawTensor

RawTensor.RandomNormal(shape, ?dtype, ?device, ?backend)

Full Usage: RawTensor.RandomNormal(shape, ?dtype, ?device, ?backend)

Parameters:
Returns: RawTensor

Gets a tensor filled with random values from the normal distribution for the given shape and configuration

shape : Shape
?dtype : Dtype
?device : Device
?backend : Backend
Returns: RawTensor

RawTensor.Zero(?dtype, ?device, ?backend)

Full Usage: RawTensor.Zero(?dtype, ?device, ?backend)

Parameters:
Returns: RawTensor

Gets the scalar zero tensor for the given configuration

?dtype : Dtype
?device : Device
?backend : Backend
Returns: RawTensor

RawTensor.Zeros(shape, ?dtype, ?device, ?backend)

Full Usage: RawTensor.Zeros(shape, ?dtype, ?device, ?backend)

Parameters:
Returns: RawTensor

Gets the zero tensor for the given shape and configuration

shape : Shape
?dtype : Dtype
?device : Device
?backend : Backend
Returns: RawTensor

© Copyright 2021, DiffSharp Contributors.