Template Class Placeholder

Class Documentation

template<typename T>
class cinn::lang::Placeholder

Placeholder

Template Parameters
  • T:

Unnamed Group

Expr operator()(Expr a) const

Get a slice.

Expr operator()(Expr a, Expr b) const
Expr operator()(Expr a, Expr b, Expr c) const
Expr operator()(Expr a, Expr b, Expr c, Expr d) const
Expr operator()(const std::vector<Expr> &indices) const

Public Functions

Placeholder(const std::string &name, const std::vector<int> &shape)
Placeholder(const std::string &name, const std::vector<Expr> &shape)
Type type() const
operator ir::Tensor()
operator ir::Expr()
ir::Tensor &operator->()
const ir::Tensor &operator->() const
ir::Tensor tensor() const