Struct Variable
Defined in File syntax.h
Inheritance Relationships
Base Type
public common::Shared< _Variable_ >
Struct Documentation
-
struct
cinn::frontend::Variable: public common::Shared<_Variable_> Variable represents the variable in a computation.
Public Functions
-
Variable(const std::string &id_hint = "") Constructor.
- Parameters
id_hint: The identifier of the variable, if null, a random ID will be assigned.
-
void
set_id(const std::string &id)
-
void
set_const(bool is_const)
-
bool
is_const()
-
_Variable_ *
operator->()
-
const _Variable_ *
operator->() const
-