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

Method WriteOptions

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

Source from the content-addressed store, hash-verified

659 public:
660 using BuiltinOperator::BuiltinOperator;
661 flatbuffers::Offset<TfLiteOptions> WriteOptions(
662 const TocoOperator& op,
663 flatbuffers::FlatBufferBuilder* builder) const override {
664 auto padding = Padding::Serialize(op.padding.type);
665 auto activation_function =
666 ActivationFunction::Serialize(op.fused_activation_function);
667 return ::tflite::CreatePool2DOptions(*builder, padding, op.stride_width,
668 op.stride_height, op.kwidth,
669 op.kheight, activation_function);
670 }
671
672 void ReadOptions(const TfLiteOptions& options,
673 TocoOperator* op) const override {

Callers

nothing calls this directly

Calls 2

SerializeFunction · 0.85
CreatePool2DOptionsFunction · 0.85

Tested by

no test coverage detected