Rate This Document
Findability
Accuracy
Completeness
Readability

Function Description

Operator Function

Calculates the matrix inner product.

Formula

In a 2D case, the formula for calculating the matrix inner product is as follows:

High-dimensional tensors are flattened into 2D tensors for calculation.

Table 1 Formula parameters

Parameter

Description

n

Batch number.

ic

Number of input channels.

oc

Number of output channels.

src

Input source tensor.

weights

Weight tensor.

bias

Bias tensor.

dst

Output result tensor.