Class Placeholder
Defined in File syntax.h
Class Documentation
-
class
cinn::frontend::Placeholder Placeholder is the fed slot of a computation.
Public Functions
-
Placeholder(const common::Type &type, const std::vector<int> &shape, absl::string_view id_hint = "", bool is_const = false) - Parameters
type: Type of the fedshape: Shape of the fedid: ID of the fed
-
const std::vector<int> &
shape() const
-
Type
type() const
-
absl::string_view
id() const
-
operator Variable() const
-
void
set_const(bool is_const)
-
bool
is_const()
-