Contents

bitwiseLeftShift(_:_:name:)

Returns the elementwise left-shifted binary representations of the primary integer by the secondary tensor amount.

Declaration

func bitwiseLeftShift(_ primaryTensor: MPSGraphTensor, _ secondaryTensor: MPSGraphTensor, name: String?) -> MPSGraphTensor

Parameters

  • primaryTensor:

    The primary input tensor, must be of integer type.

  • secondaryTensor:

    The secondary input tensor, must be of integer type.

  • name:

    An optional string which serves as an identifier for the operation.

Return Value

A valid MPSGraphTensor object containing the elementwise result of the applied operation.