
GetOutputAttr【免費(fèi)下載鏈接】geGEGraph Engine是面向昇騰的圖編譯器和執(zhí)行器提供了計(jì)算圖優(yōu)化、多流并行、內(nèi)存復(fù)用和模型下沉等技術(shù)手段加速模型執(zhí)行效率減少模型內(nèi)存占用。 GE 提供對(duì) PyTorch、TensorFlow 前端的友好接入能力并同時(shí)支持 onnx、pb 等主流模型格式的解析與編譯。項(xiàng)目地址: https://gitcode.com/cann/ge產(chǎn)品支持情況全量芯片支持。頭文件和庫(kù)文件頭文件#include graph/operator.h庫(kù)文件libgraph.so功能說(shuō)明根據(jù)屬性名稱(chēng)獲取算子輸出Tensor對(duì)應(yīng)的屬性值。函數(shù)原型graphStatus GetOutputAttr(const int32_t index, const char_t *name, AscendString attr_value) const graphStatus GetOutputAttr(const char_t *dst_name, const char_t *name, AscendString attr_value) const graphStatus GetOutputAttr(const int32_t index, const char_t *name, int64_t attr_value) const graphStatus GetOutputAttr(const char_t *dst_name, const char_t *name, int64_t attr_value) const graphStatus GetOutputAttr(const int32_t index, const char_t *name, int32_t attr_value) const graphStatus GetOutputAttr(const char_t *dst_name, const char_t *name, int32_t attr_value) const graphStatus GetOutputAttr(const int32_t index, const char_t *name, uint32_t attr_value) const graphStatus GetOutputAttr(const char_t *dst_name, const char_t *name, uint32_t attr_value) const graphStatus GetOutputAttr(const int32_t index, const char_t *name, bool attr_value) const graphStatus GetOutputAttr(const char_t *dst_name, const char_t *name, bool attr_value) const graphStatus GetOutputAttr(const int32_t index, const char_t *name, float32_t attr_value) const graphStatus GetOutputAttr(const char_t *dst_name, const char_t *name, float32_t attr_value) const graphStatus GetOutputAttr(const int32_t index, const char_t *name, std::vectorAscendString attr_value) const graphStatus GetOutputAttr(const char_t *dst_name, const char_t *name, std::vectorAscendString attr_value) const graphStatus GetOutputAttr(const int32_t index, const char_t *name, std::vectorint64_t attr_value) const graphStatus GetOutputAttr(const char_t *dst_name, const char_t *name, std::vectorint64_t attr_value) const graphStatus GetOutputAttr(const int32_t index, const char_t *name, std::vectorint32_t attr_value) const graphStatus GetOutputAttr(const char_t *dst_name, const char_t *name, std::vectorint32_t attr_value) const graphStatus GetOutputAttr(const int32_t index, const char_t *name, std::vectoruint32_t attr_value) const graphStatus GetOutputAttr(const char_t *dst_name, const char_t *name, std::vectoruint32_t attr_value) const graphStatus GetOutputAttr(const int32_t index, const char_t *name, std::vectorbool attr_value) const graphStatus GetOutputAttr(const char_t *dst_name, const char_t *name, std::vectorbool attr_value) const graphStatus GetOutputAttr(const int32_t index, const char_t *name, std::vectorfloat32_t attr_value) const graphStatus GetOutputAttr(const char_t *dst_name, const char_t *name, std::vectorfloat32_t attr_value) const參數(shù)說(shuō)明參數(shù)名輸入/輸出描述name輸入屬性名稱(chēng)。index輸入輸出索引。dst_name輸入輸出邊名稱(chēng)。attr_value輸出獲取到的int64_t表示的整型類(lèi)型屬性值。attr_value輸出獲取到的int32_t表示的整型類(lèi)型屬性值。attr_value輸出獲取到的uint32_t表示的整型類(lèi)型屬性值。attr_value輸出獲取到的vectorint64_t表示的整型列表類(lèi)型屬性值。attr_value輸出獲取到的vectorint32_t表示的整型列表類(lèi)型屬性值。attr_value輸出獲取到的vectoruint32_t表示的整型列表類(lèi)型屬性值。attr_value輸出獲取到的浮點(diǎn)類(lèi)型的屬性值。attr_value輸出獲取到的浮點(diǎn)列表類(lèi)型的屬性值。attr_value輸出獲取到的布爾類(lèi)型的屬性值。attr_value輸出獲取到的布爾列表類(lèi)型的屬性值。attr_value輸出獲取到的字符串類(lèi)型的屬性值。attr_value輸出獲取到的字符串列表類(lèi)型的屬性值。返回值說(shuō)明graphStatus類(lèi)型找到對(duì)應(yīng)屬性返回GRAPH_SUCCESS否則返回GRAPH_FAILED。異常處理無(wú)。約束說(shuō)明無(wú)。【免費(fèi)下載鏈接】geGEGraph Engine是面向昇騰的圖編譯器和執(zhí)行器提供了計(jì)算圖優(yōu)化、多流并行、內(nèi)存復(fù)用和模型下沉等技術(shù)手段加速模型執(zhí)行效率減少模型內(nèi)存占用。 GE 提供對(duì) PyTorch、TensorFlow 前端的友好接入能力并同時(shí)支持 onnx、pb 等主流模型格式的解析與編譯。項(xiàng)目地址: https://gitcode.com/cann/ge創(chuàng)作聲明:本文部分內(nèi)容由AI輔助生成(AIGC),僅供參考