bindOptimizerData(_:deviceData:)
Associates the optimizer and device data buffers you specify to the tensor.
Declaration
func bindOptimizerData(_ data: [MLCTensorData], deviceData: [MLCTensorOptimizerDeviceData]?) -> BoolParameters
- data:
An array that contains the optimizer data to associate with the tensor.
- deviceData:
An array that contains the optimizer device data to associate with the tensor.
Return Value
true if the framework successfully associated the data and device data with the tensor; otherwise, false.