Contents

placeholder(shape:dataType:name:)

Creates a placeholder operation and returns the result tensor.

Declaration

func placeholder(shape: [NSNumber]?, dataType: MPSDataType, name: String?) -> MPSGraphTensor

Parameters

  • shape:

    The shape of the output tensor. A nil shape will result in an unranked tensor.

  • dataType:

    The dataType of the placeholder tensor.

  • name:

    The name for the placeholder operation.

Return Value

A valid MPSGraphTensor object.