GetOutputDesc
产品支持情况
|
产品 |
是否支持 |
|---|---|
|
|
√ |
|
|
√ |
|
|
√ |
|
|
√ |
|
|
√ |
头文件和库文件
- 头文件:#include <graph/operator.h>
- 库文件:libgraph.so
功能说明
根据算子Output名称或Output索引获取算子Output的TensorDesc。
函数原型
数据类型为string的接口后续版本会废弃,建议使用数据类型为非string的接口。
1 2 3 |
TensorDesc GetOutputDesc(const std::string &name) const TensorDesc GetOutputDescByName(const char_t *name) const TensorDesc GetOutputDesc(uint32_t index) const |
参数说明
异常处理
无。
约束说明
无。
父主题: Operator