synchronizeData()
Synchronizes the data in host memory.
Declaration
func synchronizeData() -> BoolReturn Value
true if synchronization is successful; otherwise, false.
Discussion
This method synchronizes the tensor’s data in host memory with the 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.