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

Method Serialize

tensorflow/lite/toco/tflite/custom_operator.h:47–54  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

45 virtual void ReadOptions(const flexbuffers::Map& m, TocoOperator* op) const {}
46
47 Options Serialize(const Operator& op,
48 flatbuffers::FlatBufferBuilder* builder) const override {
49 flexbuffers::Builder fbb;
50 fbb.Map(
51 [&]() { WriteOptions(static_cast<const TocoOperator&>(op), &fbb); });
52 fbb.Finish();
53 return Options::Custom(builder->CreateVector(fbb.GetBuffer()));
54 }
55
56 std::unique_ptr<Operator> Deserialize(
57 const BuiltinOptions* builtin_options,

Callers

nothing calls this directly

Calls 4

CreateVectorMethod · 0.80
MapMethod · 0.45
FinishMethod · 0.45
GetBufferMethod · 0.45

Tested by

no test coverage detected