bindOptimizerData(_:deviceData:with:)
Associates the optimizer and device data you specify along with the tensor.
Declaration
func bindOptimizerData(_ data: [MLCTensorData], deviceData: [MLCTensorOptimizerDeviceData]?, with tensor: MLCTensor) -> BoolParameters
- data:
The optimizer data that you want to associate with the tensor.
- deviceData:
The optimizer device data that you want to associate with the tensor.
- tensor:
The tensor that you want to associate the data with.
Return Value
A Boolean value that indicates whether the data successfully associates with the tensor.