↓ 4 callersFunctionscaled_dot_product_attention
Apply scaled dot product attention.
Args:
qkv (torch.Tensor): A [N, L, 3, H, C] tensor containing Qs, Ks, and Vs.
trellis/modules/attention/full_attn.py:57
↓ 2 callersFunctionsparse_scaled_dot_product_attention
Apply scaled dot product attention to a sparse tensor.
Args:
qkv (SparseTensor): A [N, *, 3, H, C] sparse tensor containing Qs,
trellis/modules/sparse/attention/full_attn.py:41
↓ 1 callersMethod__init__(self, in_channels, out_channels, kernel_size, stride=1, dilation=1, bias=True, indice_key=None)
trellis/modules/sparse/conv/conv_torchsparse.py:12
↓ 1 callersMethod__init__(self, in_channels, out_channels, kernel_size, stride=1, dilation=1, padding=None, bias=True, indice_key=None)
trellis/modules/sparse/conv/conv_spconv.py:13