Contents

placeholder(shape:name:)

Creates a placeholder operation and returns the result tensor with the dataType of the placeholder tensor set to 32 bit float.

Declaration

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

Parameters

  • shape:

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

  • name:

    The name for the operation.

Return Value

A valid MPSGraphTensor object.