scatter(input:indices:output:axis:reductionFunction:filterParameters:)
Scatters the elements of a tensor along a single axis.
Declaration
static func scatter(input: BNNSNDArrayDescriptor, indices: BNNSNDArrayDescriptor, output: BNNSNDArrayDescriptor, axis: Int, reductionFunction: BNNS.ReductionFunction, filterParameters: BNNSFilterParameters? = nil) throwsParameters
- input:
The input descriptor.
- indices:
The indices descriptor.
- output:
The output descriptor.
- axis:
The axis along which the operation scatters elements.
- reductionFunction:
The reduction operation that the function uses to reduce existing output value with scattered value.
- filterParameters:
The runtime filter parameters.
See Also
Related Documentation
Gather and scatter operations
Calculating the dominant colors in an imagegather(input:indices:output:axis:filterParameters:)gatherND(input:indices:output:filterParameters:)scatterND(input:indices:output:reductionFunction:filterParameters:)BNNSGather(_:_:_:_:_:)BNNSGatherND(_:_:_:_:)BNNSScatter(_:_:_:_:_:_:)BNNSScatterND(_:_:_:_:_:)