Documentation
¶
Overview ¶
Package batchargmax defines the deterministic BatchArgmax source recipe.
This package is outside the compatibility promise of github.com/tmc/lib/nvidia. Its API may change or be removed in patch releases.
Package batchargmax defines the deterministic BatchArgmax source recipe.
Index ¶
Constants ¶
const PairedLoad = "batch-argmax-paired-load-v1"
PairedLoad is the identifier of the two-lane-stream scan recipe.
Variables ¶
This section is empty.
Functions ¶
func RewritePairedLoad ¶
RewritePairedLoad replaces the stock scan with two independent accumulators. The second load is guarded at the vocabulary boundary. The per-thread results retain the original value and lowest-index ordering and feed the unchanged block reduction. Callers must separately pin the original source.
Types ¶
This section is empty.