TensorBatchWrap shortcuts

Note

The C++ API provides RAII wrappers around the C API. For detailed documentation including parameters, return values, and limitations, please refer to the corresponding C API documentation.

template<typename T, typename StrideType = int64_t>
using TensorBatch1DWrap = TensorBatchWrapT<T, StrideType, sizeof(T)>
template<typename T, typename StrideType = int64_t>
using TensorBatch2DWrap = TensorBatchWrapT<T, StrideType, -1, sizeof(T)>
template<typename T, typename StrideType = int64_t>
using TensorBatch3DWrap = TensorBatchWrapT<T, StrideType, -1, -1, sizeof(T)>
template<typename T, typename StrideType = int64_t>
using TensorBatch4DWrap = TensorBatchWrapT<T, StrideType, -1, -1, -1, sizeof(T)>
template<typename T, typename StrideType = int64_t>
using TensorBatch5DWrap = TensorBatchWrapT<T, StrideType, -1, -1, -1, -1, sizeof(T)>
template<typename T, int N, typename StrideType = int64_t>
using TensorBatchNDWrap = std::conditional_t<N == 1, TensorBatch1DWrap<T, StrideType>, std::conditional_t<N == 2, TensorBatch2DWrap<T, StrideType>, std::conditional_t<N == 3, TensorBatch3DWrap<T, StrideType>, std::conditional_t<N == 4, TensorBatch4DWrap<T, StrideType>, std::conditional_t<N == 5, TensorBatch5DWrap<T, StrideType>, void>>>>>