AutoFormerV2Block.forward(torch+Tensor, Int32, Int32, torch+Tensor) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
TorchSharp.torch.nn.Module`5.forward(TorchSharp.torch.Tensor,System.Int32,System.Int32,TorchSharp.torch.Tensor)
public override TorchSharp.torch.Tensor forward(TorchSharp.torch.Tensor x, int h, int w, TorchSharp.torch.Tensor maskMatrix);
override this.forward : TorchSharp.torch.Tensor * int * int * TorchSharp.torch.Tensor -> TorchSharp.torch.Tensor
Public Overrides Function forward (x As torch.Tensor, h As Integer, w As Integer, maskMatrix As torch.Tensor) As torch.Tensor
參數
- x
- TorchSharp.torch.Tensor
- h
- Int32
- w
- Int32
- maskMatrix
- TorchSharp.torch.Tensor
傳回
TorchSharp.torch.Tensor