Struct Instruction
Defined in File syntax.h
Inheritance Relationships
Base Type
public common::Shared< _Instruction_ >
Struct Documentation
-
struct
cinn::frontend
::
Instruction
: public common::Shared<_Instruction_> Instruction is the basic computational unit of a Program, similar to the operator concept in a DNN platform.
Public Functions
-
Instruction
(absl::string_view op_type, const std::vector<Variable> &inputs = {}, Program *parent = nullptr)
-
void
SetInputs
(const std::vector<Variable> &vars) Set the inputs of the instruction.
- Parameters
vars
: The input variables.
-