Function deepviewrt_sys::nn_tensor_time
source · pub unsafe extern "C" fn nn_tensor_time(tensor: *mut NNTensor) -> i64Expand description
Returns the time information stored in the tensor. The time is returned in nanoseconds of the duration of the last operation the wrote into this tensor. causes a nn_tensor_sync on the target tensor.
This is used for measuring the time an operation takes by capturing the time the operation took into the destination tensor of the operation. The time is not the time it takes to write to the tensor, this is captured by the @ref nn_tensor_io_time() function, but the time it took the operation to complete (not including map/unmap times).
@param tensor Pointer to the tensor object.
@return Nanoseconds of processing time for the last operation which wrote into this tensor.
@public @memberof NNTensor @since 2.0