vllm.model_executor.layers.conv ¶
Conv Layer Class.
Classes:
-
Conv2dLayer–Conv layer with Conv2d.
-
Conv3dLayer–Conv layer with Conv3d.
-
ConvLayerBase–Conv layer base class.
Conv2dLayer ¶
Bases: ConvLayerBase
Conv layer with Conv2d.
Methods:
-
forward_native–Expected input shape: (batch_size, in_channels, height, width)
Source code in vllm/model_executor/layers/conv.py
forward_native(x) ¶
Expected input shape: (batch_size, in_channels, height, width)
Source code in vllm/model_executor/layers/conv.py
Conv3dLayer ¶
Bases: ConvLayerBase
Conv layer with Conv3d.
Methods:
-
forward_native–Expected input shape: (batch_size, in_channels, time, height, width)
Source code in vllm/model_executor/layers/conv.py
forward_native(x) ¶
Expected input shape: (batch_size, in_channels, time, height, width)
ConvLayerBase ¶
Bases: CustomOp
Conv layer base class.