#include <Erf.h>
Definition at line 22 of file Erf.h.
◆ ErfChef()
| ErfChef::ErfChef |
( |
const tflchef::Operation * |
operation | ) |
|
|
inlineexplicit |
Definition at line 25 of file Erf.h.
25 : _operation{operation}
26 {
27
28 }
◆ code()
| tflite::BuiltinOperator ErfChef::code |
( |
void |
| ) |
const |
|
inlineoverridevirtual |
Implements OpChef.
Definition at line 31 of file Erf.h.
31{ return tflite::BuiltinOperator_CUSTOM; }
◆ custom_value()
REGISTER_OP("Erf") .Input("x: T") .Output("y: T") .Attr("T: {bfloat16, half, float, double}") .SetShapeFn(shape_inference::UnchangedShape)
Reimplemented from OpChef.
Definition at line 29 of file Erf.cpp.
30{
31 auto &operation = (*_operation);
32
34
43 auto flex_buffers = std::make_unique<flexbuffers::Builder>();
44 size_t map_start = flex_buffers->StartMap();
45
46
47 flex_buffers->Int("T", tflite::TensorType_FLOAT32);
48
49 flex_buffers->EndMap(map_start);
50 flex_buffers->Finish();
51
54}
void check_custom_op_value(const tflchef::Operation &operation, const std::string &op_type)
OffsetT< VectorT< T > > CreateVector(const T *v, size_t len)
Serialize an array into a FlatBuffer vector.
flatbuffers::Offset< flatbuffers::Vector< uint8_t > > circle_custom_options(flatbuffers::FlatBufferBuilder &fb, const luci::CircleNode *node)
References check_custom_op_value(), and flatbuffers::FlatBufferBuilderImpl< Is64Aware >::CreateVector().
◆ type()
| tflite::BuiltinOptions ErfChef::type |
( |
void |
| ) |
const |
|
inlineoverridevirtual |
Implements OpChef.
Definition at line 33 of file Erf.h.
33{ return tflite::BuiltinOptions_NONE; }
◆ value()
Implements OpChef.
Definition at line 23 of file Erf.cpp.
24{
25 return flatbuffers::Offset<void>();
26}
The documentation for this class was generated from the following files:
- compiler/tflchef/core/src/CustomOp/Erf.h
- compiler/tflchef/core/src/CustomOp/Erf.cpp