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

Method WriteOptions

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

Source from the content-addressed store, hash-verified

717 public:
718 using BuiltinOperator::BuiltinOperator;
719 flatbuffers::Offset<TfLiteOptions> WriteOptions(
720 const TocoOperator& op,
721 flatbuffers::FlatBufferBuilder* builder) const override {
722 auto padding = Padding::Serialize(op.padding.type);
723 auto activation_function =
724 ActivationFunction::Serialize(op.fused_activation_function);
725 return ::tflite::CreatePool2DOptions(*builder, padding, op.stride_width,
726 op.stride_height, op.kwidth,
727 op.kheight, activation_function);
728 }
729
730 void ReadOptions(const TfLiteOptions& options,
731 TocoOperator* op) const override {

Callers

nothing calls this directly

Calls 2

SerializeFunction · 0.85
CreatePool2DOptionsFunction · 0.85

Tested by

no test coverage detected