deviceUsage(for:)
Returns the anticipated compute devices that would be used for executing a NeuralNetwork layer.
Declaration
func deviceUsage(for layer: MLModelStructure.NeuralNetwork.Layer) -> MLComputePlan.DeviceUsage?Parameters
- layer:
A NeuralNetwork layer
Return Value
The anticipated compute devices that would be used for evaluating the layer or nil if the usage couldn’t be determined.