Unlimited learning, half price | 50% off

Last chance! 50% off unlimited learning

Sale ends in


torch (version 0.14.2)

nnf_bilinear: Bilinear

Description

Applies a bilinear transformation to the incoming data: y=x1Ax2+b

Usage

nnf_bilinear(input1, input2, weight, bias = NULL)

Value

output (N,,Hout) where Hout=out\_features

and all but the last dimension are the same shape as the input.

Arguments

input1

(N,,Hin1) where Hin1=in1\_features and means any number of additional dimensions. All but the last dimension of the inputs should be the same.

input2

(N,,Hin2) where Hin2=in2\_features

weight

(out\_features,in1\_features,in2\_features)

bias

(out\_features)