EsCreateVectorInt64
Applicability
Product |
Supported or Not |
|---|---|
√ |
|
√ |
|
√ |
|
√ |
|
√ |
Header File/Library File
- Header file: #include <ge/esb_funcs.h>
- Library files: libeager_style_graph_builder_base.so and libeager_style_graph_builder_base_static.a
Function Usage
Creates a vector constant of the int64 type.
Prototype
1 | EsCTensorHolder *EsCreateVectorInt64(EsCGraphBuilder *graph, const int64_t *value, int64_t dim) |
Parameters
Parameter |
Input/Output |
Description |
|---|---|---|
graph |
Input |
Pointer to the graph builder. |
value |
Input |
Pointer to the vector data. |
dim |
Input |
Vector length. |
Returns
Parameter |
Type |
Description |
|---|---|---|
- |
EsCTensorHolder * |
Pointer to the created tensor holder on success, or nullptr on failure. |
Constraints
None
Examples
1 2 3 | EsCGraphBuilder *graph = EsCreateGraphBuilder("test_graph"); int64_t vec_64_data[] = {1, 2, 3, 4}; auto *vector64 = EsCreateVectorInt64(graph, vec_64_data, 4); |
Parent topic: C/C++ APIs