- activation-backend-add-scan-kernel! backend op dtype kernelprocedure
Install kernel, a procedure (outer n inner src seed out flags), as the scan with op (sum, prod, max or min). The row-major array [outer, n, inner] is scanned along its middle axis. The bits of flags are 1 for an exclusive scan, 2 for a reversed one, 4 when seed, a row-major [outer, inner] array, holds the values the lines start from, and 8 when each step computes (op element acc).