GetProducerOutIndex
Applicability
Product |
Supported or Not |
|---|---|
√ |
|
√ |
|
√ |
|
√ |
|
√ |
Header File/Library File
- Header file: #include <ge/es_tensor_holder.h>
- Library files: libeager_style_graph_builder_base.so and libeager_style_graph_builder_base_static.a
Function Usage
Obtains the output index.
Prototype
1 | int32_t GetProducerOutIndex() const |
Parameters
None
Returns
Parameter |
Type |
Description |
|---|---|---|
- |
int32_t |
Output index. |
Constraints
None
Examples
1 2 3 | auto builder = std::make_unique<ge::EsGraphBuilder>("graph"); auto tensor0 = builder->CreateInput(0); int32_t = tensor0.GetProducerOutIndex(); // Obtain the output index of tensor0. |
Parent topic: EsTensorHolder