Contents

tensor(forFunction:argument:fillKnownDynamicShapes:)

Returns an unallocated tensor for a given function argument.

Declaration

func tensor(forFunction function: String? = nil, argument: String, fillKnownDynamicShapes: Bool) -> BNNSTensor?

Parameters

  • function:

    The function. Specify as nil if the graph only contains one function.

  • argument:

    The name of the input or output argument.

  • fillKnownDynamicShapes:

    A Boolean value that specifies whether the function should replace any dynamic shapes for the next execution of the context. BNNS derives these shapes either from the default shapes in the source model, or from preceding calls to Setdynamicshapes(_:forfunction:) or /Accelerate/BNNSGraph/Context/setBatchSize(_:forFunction:). If BNNS is unable to derive the shapes, the function sets the dimensions to -1.

See Also

Related Documentation