REGISTER_OP("AddV2") .Input("x: T") .Input("y: T") .Output("z: T") .Attr( "T: {bfloat16, half, float, double, uint8, int8, int16, int32, int64, " "complex64, complex128}") .SetShapeFn(shape_inference::BroadcastBinaryOpShapeFn) .SetIsAggregate() .SetIsCommutative();
Reimplemented from OpChef.
Definition at line 29 of file AddV2.cpp.
30{
31 auto &operation = (*_operation);
32
34
48 auto flex_buffers = std::make_unique<flexbuffers::Builder>();
49 size_t map_start = flex_buffers->StartMap();
50
51
52 flex_buffers->Int("T", tflite::TensorType_FLOAT32);
53
54 flex_buffers->EndMap(map_start);
55 flex_buffers->Finish();
56
59}
void check_custom_op_value(const tflchef::Operation &operation, const std::string &op_type)
Offset< Vector< 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::FlatBufferBuilder::CreateVector().