MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / WriteOptions

Method WriteOptions

tensorflow/lite/toco/tflite/operator.cc:46–55  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

44 using BuiltinOperator::BuiltinOperator;
45
46 flatbuffers::Offset<TfLiteOptions> WriteOptions(
47 const TocoOperator& op,
48 flatbuffers::FlatBufferBuilder* builder) const override {
49 auto padding = Padding::Serialize(op.padding.type);
50 auto activation_function =
51 ActivationFunction::Serialize(op.fused_activation_function);
52 return ::tflite::CreatePool2DOptions(*builder, padding, op.stride_width,
53 op.stride_height, op.kwidth,
54 op.kheight, activation_function);
55 }
56
57 void ReadOptions(const TfLiteOptions& options,
58 TocoOperator* op) const override {

Callers

nothing calls this directly

Calls 2

SerializeFunction · 0.85
CreatePool2DOptionsFunction · 0.85

Tested by

no test coverage detected