| 585 | |
| 586 | template <typename T> |
| 587 | void FillTensorList(dali::TensorList<dali::CPUBackend> &tl, T start) { |
| 588 | auto view = dali::view<T>(tl); |
| 589 | T value = start; |
| 590 | for (int i = 0; i < view.num_samples(); i++) { |
| 591 | auto tv = view[i]; |
| 592 | for (int64_t j = 0, n = tv.num_elements(); j < n; j++) |
| 593 | tv.data[j] = value++; |
| 594 | } |
| 595 | } |
| 596 | |
| 597 | template <typename T> |
| 598 | void FillTensorList(dali::TensorList<dali::GPUBackend> &tl, T start) { |
nothing calls this directly
no test coverage detected