Class Placeholder

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 fed

  • shape: Shape of the fed

  • id: ID of the fed

Placeholder(const Variable &var)
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()
Program *parent_program()