共用方式為


Attention 類別

定義

注意層。

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)
繼承
torch.nn.Module<TorchSharp.torch.Tensor,TorchSharp.torch.Tensor,TorchSharp.torch.Tensor>
Attention

建構函式

Attention(Int32, Int32, Int32, Int32, List<Int32>)

初始化 Attention 類別的新執行個體。

方法

forward(torch+Tensor, torch+Tensor)

注意層。

適用於