@@ -135,15 +135,19 @@ typedef struct _DALIDeleter {
135
135
/** Returns the last error code.
136
136
*
137
137
* Returns the error code associate with the recent unsuccessful call in the calling thread.
138
- * Succesful calls do not overwrite the value.
138
+ * Successful calls do not overwrite the value.
139
+ *
140
+ * @retval Error code of the most recent unsuccessful DALI API call,
141
+ * @retval DALI_SUCCESS if no error has occurred in the calling thread or the error
142
+ * has been cleared with a call to daliClearLastError.
139
143
*/
140
144
DALI_API daliResult_t daliGetLastError ();
141
145
142
146
/** Returns the last error message.
143
147
*
144
148
* Returns the detailed, context-specific message associated with the recent unsuccessful call
145
149
* in the callling thread.
146
- * Succesful calls do not overwrite the value.
150
+ * Successful calls do not overwrite the value.
147
151
* The pointer is invalidated by intervening DALI calls in the same thread.
148
152
*/
149
153
DALI_API const char * daliGetLastErrorMessage ();
@@ -467,7 +471,7 @@ DALI_API daliResult_t daliPipelineGetOutputCount(daliPipeline_h pipeline, int *o
467
471
/** Gets a descriptor of the specified pipeline output.
468
472
*
469
473
* @param pipeline [in] The pipeline
470
- * @param out_desc [out] A pointer to a location where the decriptor is written.
474
+ * @param out_desc [out] A pointer to a location where the descriptor is written.
471
475
* @param index [in] The 0-based index of the output. See `daliPipelineGetOutputCount`.
472
476
*
473
477
* NOTE: The names returned by this function match those specified when defining the pipeline,
@@ -525,8 +529,9 @@ DALI_API daliResult_t daliPipelinePopOutputsAsync(
525
529
* Otherwise, the outputs must not be used after this call has been made.
526
530
*
527
531
* @warning When NOT using DALI_EXEC_IS_DYNAMIC, the maximum number of live daliPipelineOutputs_h
528
- * obtained from a single pipeline must not exceed the prefetch_queue_depth. An attempt
529
- * to run the pipeline again after the
532
+ * obtained from a single pipeline must not exceed the prefetch_queue_depth. Running the
533
+ * pipeline again after the maximum number of live output sets is reached is an undefined
534
+ * behavior.
530
535
*/
531
536
DALI_API daliResult_t daliPipelineOutputsDestroy (daliPipelineOutputs_h out );
532
537
@@ -707,8 +712,8 @@ DALI_API daliResult_t daliTensorListAttachBuffer(
707
712
* Attaches externally allocated buffers to a TensorList.
708
713
* If provided, the deleters are called on all buffers when the samples are destroyed.
709
714
*
710
- * The shape and sample offsets are used only during this function call and may be safely
711
- * disposed of after the function returns.
715
+ * The sample descriptors are used only during this function call and may be safely disposed of
716
+ * after the function returns.
712
717
*
713
718
* @param tensor_list the TensorList to attach the data to
714
719
* @param num_samples the new number of samples in the batch
@@ -774,7 +779,7 @@ DALI_API daliResult_t daliTensorListGetStream(
774
779
775
780
/** Gets the readiness event associated with the TensorList.
776
781
*
777
- * @param tensor_list [in] the tenosr list whose ready event is to be obtained
782
+ * @param tensor_list [in] the tensor list whose ready event is to be obtained
778
783
* @param out_event [out] the pointer to the return value
779
784
*
780
785
* @retval DALI_SUCCESS if the ready event handle was stored in *out_event
@@ -808,7 +813,7 @@ DALI_API daliResult_t daliTensorListGetOrCreateReadyEvent(
808
813
* contains (*out_num_samples) * (*out_ndim) elements
809
814
*
810
815
* The pointer returned in `out_shape` remains valid until the TensorList is destroyed or modified.
811
- * If the caller is not intersted in some of the values, the pointers can be NULL.
816
+ * If the caller is not interested in some of the values, the pointers can be NULL.
812
817
*/
813
818
DALI_API daliResult_t daliTensorListGetShape (
814
819
daliTensorList_h tensor_list ,
@@ -819,7 +824,7 @@ DALI_API daliResult_t daliTensorListGetShape(
819
824
/** Gets a layout string describing the samples in the TensorList.
820
825
*
821
826
* @param tensor_list [in] the tensor list whose layout to obtain
822
- * @param out_layout [out] a pointer to the place where a pointer to the the layout string of
827
+ * @param out_layout [out] a pointer to the place where a pointer to the layout string of
823
828
* the samples in the tensor list is stored
824
829
*
825
830
* When present, the layout string consists of exactly `sample_ndim` single-character _axis labels_.
@@ -871,7 +876,7 @@ DALI_API daliResult_t daliTensorListGetSourceInfo(
871
876
/** Gets the tensor descriptor of the specified sample.
872
877
*
873
878
* @param tensor_list [in] The tensor list
874
- * @param out_desc [out] A poitner to a location where the decriptor is written.
879
+ * @param out_desc [out] A poitner to a location where the descriptor is written.
875
880
* @param sample_idx [in] The index of the sample, whose descriptor to get.
876
881
*
877
882
* The descriptor stored in `out_desc` contains pointers. These pointers are invalidated by
@@ -1015,7 +1020,7 @@ DALI_API daliResult_t daliTensorGetStream(
1015
1020
1016
1021
/** Gets the readiness event associated with the Tensor.
1017
1022
*
1018
- * @param tensor [in] the tenosr list whose ready event is to be obtained
1023
+ * @param tensor [in] the tensor list whose ready event is to be obtained
1019
1024
* @param out_event [out] the pointer to the return value
1020
1025
*
1021
1026
* @retval DALI_SUCCESS if the ready event handle was stored in *out_event
@@ -1028,7 +1033,7 @@ DALI_API daliResult_t daliTensorGetReadyEvent(
1028
1033
1029
1034
/** Gets the readiness event associated with the Tensor or creates a new one.
1030
1035
*
1031
- * @param tensor [in] the tensor to associate an even twith
1036
+ * @param tensor [in] the tensor to associate an even twith
1032
1037
* @param out_event [out] optional, the event handle
1033
1038
*
1034
1039
* The function ensures that a readiness event is associated with the tensor.
@@ -1042,12 +1047,12 @@ DALI_API daliResult_t daliTensorGetOrCreateReadyEvent(
1042
1047
1043
1048
/** Gets the shape of the tensor
1044
1049
*
1045
- * @param tensor [in] the tensor whose shape to obtain
1046
- * @param out_ndim [out] optional; receives the number of dimensions
1047
- * @param out_shape [out] optional; receives the the pointer to the shape (array of extents)
1050
+ * @param tensor [in] the tensor whose shape to obtain
1051
+ * @param out_ndim [out] optional; receives the number of dimensions
1052
+ * @param out_shape [out] optional; receives the pointer to the shape (array of extents)
1048
1053
*
1049
1054
* The pointer returned in `out_shape` remains valid until the Tensor is destroyed or modified.
1050
- * If the caller is not intersted in some of the values, the pointers can be NULL.
1055
+ * If the caller is not interested in some of the values, the pointers can be NULL.
1051
1056
*/
1052
1057
DALI_API daliResult_t daliTensorGetShape (
1053
1058
daliTensor_h tensor ,
@@ -1057,7 +1062,7 @@ DALI_API daliResult_t daliTensorGetShape(
1057
1062
/** Gets a layout string describing the data in the Tensor.
1058
1063
*
1059
1064
* @param tensor [in] the tensor whose layout to obtain
1060
- * @param out_layout [out] a pointer to the place where a pointer to the the layout string of
1065
+ * @param out_layout [out] a pointer to the place where a pointer to the layout string of
1061
1066
* the samples in the tensor is stored
1062
1067
*
1063
1068
* When present, the layout string consists of exactly `ndim` single-character _axis labels_.
@@ -1104,7 +1109,7 @@ DALI_API daliResult_t daliTensorGetSourceInfo(
1104
1109
/** Gets the descriptor of the data in the tensor.
1105
1110
*
1106
1111
* @param tensor [in] The tensor
1107
- * @param out_desc [out] A poitner to a location where the decriptor is written.
1112
+ * @param out_desc [out] A poitner to a location where the descriptor is written.
1108
1113
*
1109
1114
* The descriptor stored in `out_desc` contains pointers. These pointers are invalidated by
1110
1115
* destroying, clearing or resizing the Tensor or re-attaching new data to it.
0 commit comments