Contents

logarithmBase2(with:name:)

Computes the logarithm with base 2 to the input tensor elements.

Declaration

func logarithmBase2(with tensor: MPSGraphTensor, name: String?) -> MPSGraphTensor

Parameters

  • tensor:

    The input tensor.

  • 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.