Class VarDescAPI

Inheritance Relationships

Derived Types

Class Documentation

class cinn::frontend::paddle::cpp::VarDescAPI

Subclassed by cinn::frontend::paddle::cpp::VarDesc, cinn::frontend::paddle::pb::VarDesc

Public Types

enum Type

Values:

enumerator BOOL
enumerator INT16
enumerator INT32
enumerator INT64
enumerator FP16
enumerator FP32
enumerator FP64
enumerator SIZE_T
enumerator UINT8
enumerator INT8
enumerator LOD_TENSOR
enumerator SELECTED_ROWS
enumerator FEED_MINIBATCH
enumerator FETCH_LIST
enumerator STEP_SCOPES
enumerator LOD_RANK_TABLE
enumerator LOD_TENSOR_ARRAY
enumerator PLACE_LIST
enumerator READER
enumerator RAW
enumerator TUPLE
using VarDataType = Type

Public Functions

~VarDescAPI() = default
std::string Name() const = 0
void SetName(std::string name) = 0
Type GetType() const = 0
void SetType(Type type) = 0
bool Persistable() const = 0
void SetPersistable(bool persistable) = 0
std::vector<int64_t> GetShape() const = 0
void SetShape(const std::vector<int64_t> &dims) = 0