Attention Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
The Attention layer.
public class Attention : TorchSharp.torch.nn.Module<TorchSharp.torch.Tensor,TorchSharp.torch.Tensor,TorchSharp.torch.Tensor>
type Attention = class
inherit torch.nn.Module<torch.Tensor, torch.Tensor, torch.Tensor>
Public Class Attention
Inherits torch.nn.Module(Of torch.Tensor, torch.Tensor, torch.Tensor)
- Inheritance
-
torch.nn.Module<TorchSharp.torch.Tensor,TorchSharp.torch.Tensor,TorchSharp.torch.Tensor>Attention
Constructors
Attention(Int32, Int32, Int32, Int32, List<Int32>) |
Initializes a new instance of the Attention class. |
Methods
forward(torch+Tensor, torch+Tensor) | TorchSharp.torch.nn.Module`3.forward(TorchSharp.torch.Tensor,TorchSharp.torch.Tensor) |