Attention 類別

定義

注意層。

public class Attention : TorchSharp.torch.nn.Module<TorchSharp.torch.Tensor,TorchSharp.torch.Tensor,TorchSharp.torch.Tensor>
繼承
torch.nn.Module<TorchSharp.torch.Tensor,TorchSharp.torch.Tensor,TorchSharp.torch.Tensor>
Attention

建構函式

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

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

方法

適用於

產品 版本
ML.NET 3.0.0, 4.0.0, Preview