ListListTypeToPtrAndCounts

Applicability

Product

Supported

Atlas 350 Accelerator Card

Atlas A3 training product/Atlas A3 inference product

Atlas A2 training product/Atlas A2 inference product

Atlas 200I/500 A2 inference product

Atlas inference product

Atlas training product

Header File/Library File

  • Header file: #include <ge/es_graph_builder.h>
  • Library files: libeager_style_graph_builder_base.so and libeager_style_graph_builder_base_static.a

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.

Restrictions

None