nuget server logo nuget api documents
↑

API Docs / Microsoft.VisualBasic.MachineLearning.TensorFlow / Tensor

Tensor

Full name Microsoft.VisualBasic.MachineLearning.TensorFlow.AutomaticDifferentiation.Tensor Assembly Microsoft.VisualBasic.MachineLearning.TensorFlow Members 35

01 Syntax

Microsoft.VisualBasic.MachineLearning.TensorFlow.AutomaticDifferentiation.Tensor

02 Methods

NameOverloadsSummary
.ctor 2 Copy constructor. Removes the derivatives and actions.
Transpose 1 Transpose the last two dimensions
Scale 1 Scale all elements with a number
Add 1 Add a number to all elements
Pow 1 Element-wise power
GenerateNormalRandomValues 1 Generate normal random values with He scaling over the second last dimension of the tensor.
Softmax 1 Softmax over last dimension
Mask 1 Mask upper triangular part of the last two dimensions of a tensor
Dropout 1 Zero out elemens of the last dimension of a tensor based on a masking array
ReLU 1 Set all elements
Flatten 1 Flatten last two dimensions.
GetMaxIndex 1 Only used for final output layer
VecAdd 1 Add a vector to the last dimension of the matrix
MatAdd 2 Element-wise addition of the elemens of two tensors with identical shape
ClearDerivatives 1 Remove derivatives and derivative actions
GetDerivatives 1 Extract derivatives of a tensor and return as a new tensor
TransferDerivatives 1 Perform derivative calculations for all elements in a tensor with input values from the derivatives of another tensor with the same shape
MatDivElementWise 1 Element-wise division of the elemens of two tensors with identical shape
MatMulElementWise 1 Element-wise multiplication of the elemens of two tensors with identical shape
MatMul 1 Matrix multiplication over the last two dimensions of two tensors
Concat 1 Concatenate an array of tensors of identical shape along its last dimension
AddNorm 1 Add two tensors and normalize over last dimension
ToString 1
op_Multiply 1
op_Division 1
op_Addition 1
op_Subtraction 1

03 Properties

NameOverloadsSummary
Item 4 Index parameter implementation
Dimension 1

04 Fields

NameOverloadsSummary
sizes 1 dimension size

05 Members

method .ctor overload 2 #
#ctor(Int32())

Constructor

Parameters
NameTypeDescription
sizesInt32()

-

method .ctor #
#ctor(Tensor, Boolean)

Copy constructor. Removes the derivatives and actions.

Parameters
NameTypeDescription
TTensor

-

method Transpose #
Transpose

Transpose the last two dimensions

method Scale #
Scale(Double)

Scale all elements with a number

Parameters
NameTypeDescription
sDouble

-

method Add #
Add(Double)

Add a number to all elements

Parameters
NameTypeDescription
sDouble

-

method Pow #
Pow(Double)

Element-wise power

Parameters
NameTypeDescription
eDouble

-

method GenerateNormalRandomValues #
GenerateNormalRandomValues

Generate normal random values with He scaling over the second last dimension of the tensor.

method Softmax #
Softmax

Softmax over last dimension

method Mask #
Mask

Mask upper triangular part of the last two dimensions of a tensor

method Dropout #
Dropout(Boolean(), Double)

Zero out elemens of the last dimension of a tensor based on a masking array

Parameters
NameTypeDescription
dropoutMaskBoolean()

-

method ReLU #
ReLU

Set all elements

method Flatten #
Flatten

Flatten last two dimensions.

method GetMaxIndex #
GetMaxIndex

Only used for final output layer

method VecAdd #
VecAdd(Tensor)

Add a vector to the last dimension of the matrix

Parameters
NameTypeDescription
vTensor

-

method MatAdd overload 2 #
MatAdd(Tensor)

In place element-wise addition of the elemens of two tensors with identical shape. Only used for optimizer.

Parameters
NameTypeDescription
TTensor

-

method MatAdd #
MatAdd(Tensor, Tensor)

Element-wise addition of the elemens of two tensors with identical shape

Parameters
NameTypeDescription
ATensor

-

BTensor

-

method ClearDerivatives #
ClearDerivatives

Remove derivatives and derivative actions

method GetDerivatives #
GetDerivatives

Extract derivatives of a tensor and return as a new tensor

method TransferDerivatives #
TransferDerivatives(Tensor)

Perform derivative calculations for all elements in a tensor with input values from the derivatives of another tensor with the same shape

Parameters
NameTypeDescription
TTensor

-

method MatDivElementWise #
MatDivElementWise(Tensor, Tensor)

Element-wise division of the elemens of two tensors with identical shape

Parameters
NameTypeDescription
ATensor

-

BTensor

-

method MatMulElementWise #
MatMulElementWise(Tensor, Tensor)

Element-wise multiplication of the elemens of two tensors with identical shape

Parameters
NameTypeDescription
ATensor

-

BTensor

-

method MatMul #
MatMul(Tensor, Tensor)

Matrix multiplication over the last two dimensions of two tensors

Parameters
NameTypeDescription
ATensor

-

BTensor

-

method Concat #
Concat(Tensor())

Concatenate an array of tensors of identical shape along its last dimension

Parameters
NameTypeDescription
TensorsTensor()

-

method AddNorm #
AddNorm(Tensor, Tensor)

Add two tensors and normalize over last dimension

Parameters
NameTypeDescription
ATensor

-

BTensor

-

property Item overload 4 #
Item(Int32())

Index parameter implementation

Parameters
NameTypeDescription
keysInt32()

-

property Item overload 3 #
Item(Int32)

Index parameter implementation

property Item overload 2 #
Item(Int32, Int32)

Index parameter implementation

property Item #
Item(Int32, Int32, Int32)

Index parameter implementation

field sizes #
sizes

dimension size

property Dimension #
Dimension
method ToString #
ToString()
method op_Multiply #
op_Multiply(Tensor, Tensor)
method op_Division #
op_Division(Tensor, Tensor)
method op_Addition #
op_Addition(Tensor, Tensor)
method op_Subtraction #
op_Subtraction(Tensor, Tensor)