Contents

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) throws

Parameters

  • 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