xnn.common.models.ops.small_gather_elements#
- xnn.common.models.ops.small_gather_elements()[source]#
Element count below which
gather_rows()andscatter_sum()useindex_selectandindex_add_on CUDA as well.The kernels cost the same there, and the expanded index of
gather/scatter_add_adds host-side view operations, which bound small systems. A function, not a module constant: TorchScript cannot read module globals.- Return type: