#include <RoPE.h>
Definition at line 22 of file RoPE.h.
◆ RoPEChef()
RoPEChef::RoPEChef |
( |
const circlechef::Operation * |
operation | ) |
|
|
inlineexplicit |
Definition at line 25 of file RoPE.h.
25 : _operation{operation}
26 {
27
28 }
◆ code()
circle::BuiltinOperator RoPEChef::code |
( |
void |
| ) |
const |
|
inlineoverridevirtual |
Implements OpChef.
Definition at line 31 of file RoPE.h.
31{ return circle::BuiltinOperator_ROPE; }
◆ type()
circle::BuiltinOptions RoPEChef::type |
( |
void |
| ) |
const |
|
inlineoverridevirtual |
Implements OpChef.
Definition at line 33 of file RoPE.h.
33{ return circle::BuiltinOptions_RoPEOptions; }
◆ value()
Implements OpChef.
Definition at line 21 of file RoPE.cpp.
22{
23 auto &operation = (*_operation);
24 assert(operation.has_rope_options());
25
26 circle::RoPEOptionsBuilder options_builder{fbb};
27 options_builder.add_mode(static_cast<circle::RoPEMode>(operation.rope_options().mode()));
28
29 return options_builder.
Finish().Union();
30}
void Finish(Offset< T > root, const char *file_identifier=nullptr)
Finish serializing a buffer by writing the root offset.
References flatbuffers::FlatBufferBuilder::Finish().
The documentation for this class was generated from the following files:
- compiler/circlechef/core/src/Op/RoPE.h
- compiler/circlechef/core/src/Op/RoPE.cpp