GetOutputShapes
Applicability
Product |
Supported |
|---|---|
Atlas 350 Accelerator Card |
√ |
√ |
|
√ |
|
√ |
|
√ |
|
√ |
Header File/Library File
- Header file: #include <ge/ge_graph_compile_summary.h>
- Library file: libge_compiler.so
Function Usage
Applies only to static shape graphs. It obtains the output shapes of the compiled graph. The output shapes can be used to calculate the memory size occupied by outputs. For dynamic multi-profile graphs, it obtains the output shapes of the maximum profile.
Prototype
1 | Status GetOutputShapes(std::vector<ge::Shape> &shapes) const |
Parameters
Parameter |
Input/Output |
Description |
|---|---|---|
shapes |
Output |
Vector of the ge::Shape type. |
Returns
Parameter |
Type |
Description |
|---|---|---|
- |
Status |
|
Restrictions
None
Parent topic: CompiledGraphSummary