MCPcopy Create free account
hub / github.com/NVIDIA/DALI / daliTensorGetStream

Function daliTensorGetStream

dali/c_api_2/data_objects.cc:179–189  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

177}
178
179daliResult_t daliTensorGetStream(
180 daliTensor_h tensor,
181 cudaStream_t *out_stream) {
182 DALI_PROLOG();
183 auto *ptr = ToPointer(tensor);
184 CHECK_OUTPUT(out_stream);
185 auto str = ptr->GetStream();
186 *out_stream = str.has_value() ? *str : cudaStream_t(-1);
187 return str.has_value() ? DALI_SUCCESS : DALI_NO_DATA;
188 DALI_EPILOG();
189}
190
191daliResult_t daliTensorSetStream(
192 daliTensor_h tensor,

Callers

nothing calls this directly

Calls 2

ToPointerFunction · 0.70
GetStreamMethod · 0.45

Tested by

no test coverage detected