nn_tensor_sync

Function nn_tensor_sync 

Source
pub unsafe extern "C" fn nn_tensor_sync(
    tensor: *mut NNTensor,
) -> NNError
Expand description

Synchronize the tensor and all preceeding events in the chain.

This is used for engines which may not immediately evaluate tensor operations but instead pass events around, this call will synchronize the event chain leading to this tensor.

@param tensor Pointer to the tensor object.

@return NN_SUCCESS if the sync was successful or ignored by engines which do not implement this API.

@public @memberof NNTensor @since 2.0