FirstTokenPooling1D
Applies first token pooling for temporal data
forward(x: torch.Tensor)Using FirstTokenPooling1D
from liqfit.modeling.pooling import FirstTokenPooling1D
import torch
x = torch.randn((1, 10, 20))
pooler = FirstTokenPooling1D()
out = pooler(x)Last updated