(
args: {inputs: SparseSegmentSumInputs, backend: WebGPUBackend})
| 21 | import {sparseSegmentReduce} from '../kernel_utils/sparse_segment_reduce'; |
| 22 | |
| 23 | export function sparseSegmentSum( |
| 24 | args: {inputs: SparseSegmentSumInputs, backend: WebGPUBackend}): |
| 25 | TensorInfo { |
| 26 | const {inputs, backend} = args; |
| 27 | const {data, indices, segmentIds} = inputs; |
| 28 | |
| 29 | return sparseSegmentReduce(data, indices, segmentIds, true, backend); |
| 30 | } |
| 31 | |
| 32 | export const sparseSegmentSumConfig: KernelConfig = { |
| 33 | kernelName: SparseSegmentSum, |
nothing calls this directly
no test coverage detected
searching dependent graphs…