OperationGroup
public enum OperationGroup
OperationGroup allows the grouping of operations in the compute graph.
This improves the readability, when displaying the compute graph using result.graph().
It has no effect on the way that computations are performed. When optimization is enabled,
operation groups are not captured.
-
Captures a group of operations that is displayed within a box in the compute graph, when using
result.graph(). Only applicable for debug builds. In release builds, the operation closure is executed but otherwise, the operation group has no effect.Declaration
Swift
@inline(__always) public static func capture<Output>(named name: String, _ operations: () -> Output) -> OutputParameters
nameName of the operation
operationsOperations to group
View on GitHub
OperationGroup Enumeration Reference