1 write to dh
Microsoft.ML.TorchSharp (1)
AutoFormerV2\Attention.cs (1)
55this.dh = this.d * numHeads;
3 references to dh
Microsoft.ML.TorchSharp (3)
AutoFormerV2\Attention.cs (3)
57int h = this.dh + (this.nHkD * 2); 61this.proj = nn.Linear(this.dh, inChannels); 129x = torch.matmul(attn, v).transpose(1, 2).reshape(b, n, this.dh);