init(type:)
Creates a device of the type you specify.
Declaration
convenience init?(type: MLCDeviceType)Parameters
- type:
The device type.
Discussion
For the type parameter, use MLCDeviceType.any unless you need to control device selection. This ensures that the framework selects the best device to execute the neural network.