init(data:)
Creates a graph by decoding a computegraph.
Declaration
init(data: Data) throwsParameters
- data:
The encoded graph data to decode.
Discussion
This initializer infers the serialization format from the contents of data, so you can pass data produced by data(using:) regardless of the ComputeNodeGraph.Format you chose when encoding.