PatchMerging 类

定义

PatchMerging 层。

public class PatchMerging : TorchSharp.torch.nn.Module<TorchSharp.torch.Tensor,int,int,(TorchSharp.torch.Tensor, int, int)>
type PatchMerging = class
    inherit torch.nn.Module<torch.Tensor, int, int, ValueTuple<torch.Tensor, int, int>>
Public Class PatchMerging
Inherits torch.nn.Module(Of torch.Tensor, Integer, Integer, ValueTuple(Of torch.Tensor, Integer, Integer))
继承
torch.nn.Module<TorchSharp.torch.Tensor,Int32,Int32,ValueTuple<TorchSharp.torch.Tensor,Int32,Int32>>
PatchMerging

构造函数

PatchMerging(Int32, Int32)

初始化 PatchMerging 类的新实例。

方法

forward(torch+Tensor, Int32, Int32)

PatchMerging 层。

适用于