Overview

C-style output type of the ES API. C users can call esb_funcs.h to build graphs, and C++ users can call external APIs of the EsTensorHolder class.

Header Files to Be Included

1
#include <es_c_tensor_holder.h>

Public Member Functions

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
EsCTensorHolder(EsCGraphBuilder &owner, const ge::GNode &producer, int32_t index)
~EsCTensorHolder()
EsCTensorHolder(EsCTensorHolder &&) noexcept
EsCTensorHolder &operator=(EsCTensorHolder &&) noexcept
ge::Status SetDataType(const ge::DataType data_type)
ge::Status SetFormat(const ge::Format format)
ge::Status SetOriginFormat(const ge::Format format)
ge::Status SetStorageFormat(const ge::Format format)
ge::Status SetOriginShape(const ge::Shape &shape)
ge::Status SetStorageShape(const ge::Shape &shape)
ge::Status SetShape(const ge::Shape &shape)
ge::Status SetOriginSymbolShape(const char *const *shape_str, const int64_t shape_str_num)
ge::GNode &GetProducer()
int32_t GetOutIndex() const
EsCGraphBuilder &GetOwnerBuilder()