Home
last modified time | relevance | path

Searched defs:SerializedTensorDesc (Results 1 – 2 of 2) sorted by relevance

/foundation/ai/neural_network_runtime/frameworks/native/neural_network_runtime/
Dnncompiler.cpp48 struct SerializedTensorDesc { struct
53 …Code CopyFromTensorDesc(const std::pair<std::shared_ptr<TensorDesc>, OH_NN_TensorType>& tensorDesc) in CopyFromTensorDesc()
88 OH_NN_ReturnCode CopyToTensorDesc(TensorDesc& tensorDesc) const in CopyToTensorDesc()
117 OH_NN_DataType m_dataType{OH_NN_UNKNOWN};
118 OH_NN_Format m_format{OH_NN_FORMAT_NONE};
119 OH_NN_TensorType m_tensorType{OH_NN_TENSOR};
120 size_t m_shapeNum{0};
121 int32_t* m_shape{nullptr};
122 const char* m_name{nullptr}; // null-terminated
Dnnexecutor.cpp42 struct SerializedTensorDesc { struct
47 …Code CopyFromTensorDesc(const std::pair<std::shared_ptr<TensorDesc>, OH_NN_TensorType>& tensorDesc) in CopyFromTensorDesc()
82 OH_NN_ReturnCode CopyToTensorDesc(TensorDesc& tensorDesc) const in CopyToTensorDesc()
111 OH_NN_DataType m_dataType{OH_NN_UNKNOWN};
112 OH_NN_Format m_format{OH_NN_FORMAT_NONE};
113 OH_NN_TensorType m_tensorType{OH_NN_TENSOR};
114 size_t m_shapeNum{0};
115 int32_t* m_shape{nullptr};
116 const char* m_name{nullptr}; // null-terminated