Contents

deviceType

A device type that indicates where the system executes the layer.

Declaration

var deviceType: MLCDeviceType { get }

Discussion

The system uses the MLCDevice you provide to compile(options:device:) to execute the layers in the graph.

If you select MLCDeviceType.ane, it is possible that some layers may not execute on the MLCDeviceType.ane, but instead on the CPU or GPU.

See Also

Inspecting a Layer