Contents

concatTensors(_:dimension:name:)

Creates a concatenation operation and returns the result tensor.

Declaration

func concatTensors(_ tensors: [MPSGraphTensor], dimension dimensionIndex: Int, name: String?) -> MPSGraphTensor

Parameters

  • tensors:

    The tensors to concatenate.

  • dimensionIndex:

    The dimension to concatenate across, must be in range: -rank <= dimension < rank.

  • name:

    The name for the operation.

Return Value

A valid MPSGraphTensor object

Discussion

Concatenates all input tensors along the specified dimension. All inputs must be broadcast compatible along all other dimensions, and have the same datatype.