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

Function main

tensorflow/lite/experimental/writer/writer.cc:27–41  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

25#include "tensorflow/lite/model.h"
26
27int main(int argc, char* argv[]) {
28 if (argc != 3) {
29 fprintf(stderr, "Usage: %s input_file output_file\n", argv[0]);
30 return 1;
31 }
32 std::unique_ptr<tflite::FlatBufferModel> model =
33 tflite::FlatBufferModel::BuildFromFile(argv[1]);
34 std::unique_ptr<tflite::Interpreter> interpreter;
35 tflite::ops::builtin::BuiltinOpResolver builtin_op_resolver;
36 tflite::InterpreterBuilder(*model, builtin_op_resolver)(&interpreter);
37 tflite::InterpreterWriter writer(interpreter.get());
38 writer.Write(argv[2]);
39
40 return 0;
41}

Callers

nothing calls this directly

Calls 3

InterpreterBuilderClass · 0.85
getMethod · 0.45
WriteMethod · 0.45

Tested by

no test coverage detected