Class VarDesc

Inheritance Relationships

Base Type

Class Documentation

class cinn::frontend::paddle::pb::VarDesc : public cinn::frontend::paddle::cpp::VarDescAPI

Public Functions

VarDesc() = delete
VarDesc(framework_proto::VarDesc *desc)
::paddle::framework::proto::VarDesc *Proto()
const framework_proto::VarDesc &ReadonlyProto() const
std::string Name() const override
void SetName(std::string name) override
void SetTensorDescNum(size_t num)
size_t GetTensorDescNum() const
void SetShape(const std::vector<int64_t> &dims)
void SetShapes(const std::vector<std::vector<int64_t>> &multiple_dims)
std::vector<int64_t> GetShape() const
std::vector<std::vector<int64_t>> GetShapes() const
void SetDataType(VarDescAPI::VarDataType data_type)
void SetDataTypes(const std::vector<framework_proto::VarType::Type> &multiple_data_type)
VarDescAPI::VarDataType GetDataType() const
std::vector<framework_proto::VarType::Type> GetDataTypes() const
void SetLoDLevel(int32_t lod_level)
void SetLoDLevels(const std::vector<int32_t> &multiple_lod_level)
int32_t GetLoDLevel() const
std::vector<int32_t> GetLoDLevels() const
VarDescAPI::Type GetType() const override
void SetType(VarDescAPI::Type type) override
bool Persistable() const override
void SetPersistable(bool persistable) override