ListListTypeToPtrAndCounts

Applicability

Product

Supported or Not

Atlas A3 training products/Atlas A3 inference products

Atlas A2 training products/Atlas A2 inference products

Atlas 200I/500 A2 inference products

Atlas inference products

Atlas training products

Function Usage

Converts the input parameter of the ListListType attribute into a pair that contains List of Ptrs and List inner size.

Prototype

1
2
template <typename T>
std::pair<std::vector<const T *>, std::vector<int64_t>> ListListTypeToPtrAndCounts(const std::vector<std::vector<T>> &list_list_type)

Parameters

Parameter

Input/Output

Description

T

Input

Type of the list of lists.

list_list_type

Input

Input parameter of the ListListType attribute.

Returns

Parameter

Type

Description

-

std::pair<std::vector<const T *>, std::vector<int64_t>>

Pair that contains List of Ptrs and List inner size.

Constraints

None