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

Method Serialize

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

Source from the content-addressed store, hash-verified

2062 : BaseOperator(name, type), enable_select_tf_ops_(enable_select_tf_ops) {}
2063
2064 Options Serialize(const Operator& op,
2065 flatbuffers::FlatBufferBuilder* builder) const override {
2066 auto fbb =
2067 WriteOptions(static_cast<const TensorFlowUnsupportedOperator&>(op));
2068 if (fbb) {
2069 return Options::Custom(builder->CreateVector(fbb->GetBuffer()));
2070 } else {
2071 return Options::Custom(0);
2072 }
2073 }
2074
2075 std::unique_ptr<Operator> Deserialize(
2076 const BuiltinOptions* builtin_options,

Callers

nothing calls this directly

Calls 2

CreateVectorMethod · 0.80
GetBufferMethod · 0.45

Tested by

no test coverage detected