Attention.forward(torch+Tensor, torch+Tensor) Method

Definition

TorchSharp.torch.nn.Module`3.forward(TorchSharp.torch.Tensor,TorchSharp.torch.Tensor)
public override TorchSharp.torch.Tensor forward (TorchSharp.torch.Tensor x, TorchSharp.torch.Tensor mask);
override this.forward : TorchSharp.torch.Tensor * TorchSharp.torch.Tensor -> TorchSharp.torch.Tensor
Public Overrides Function forward (x As torch.Tensor, mask As torch.Tensor) As torch.Tensor

Parameters

x
TorchSharp.torch.Tensor
mask
TorchSharp.torch.Tensor

Returns

TorchSharp.torch.Tensor

Applies to