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