Contents

synchronizeOptimizerData()

Synchronizes the optimizer data in host memory.

Declaration

func synchronizeOptimizerData() -> Bool

Return Value

true if synchronization is successful; otherwise, false.

Discussion

This method synchronizes the optimizerData in host memory with latest contents in device memory.

Only call this method once the graph, with which you used this tensor, finishes execution; otherwise the results in device memory may not be up to date.

See Also

Managing Tensor Data