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

Function Convert

tensorflow/lite/toco/toco_convert.cc:74–83  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

72} // namespace
73
74tensorflow::Status Convert(const string& graph_def_contents,
75 const TocoFlags& toco_flags,
76 const ModelFlags& model_flags,
77 string* output_file_contents) {
78 std::unique_ptr<Model> model =
79 Import(toco_flags, model_flags, graph_def_contents);
80 TF_RETURN_IF_ERROR(TransformWithStatus(toco_flags, model.get()));
81 return Export(toco_flags, *model, toco_flags.allow_custom_ops(),
82 output_file_contents);
83}
84
85tensorflow::Status Convert(const ParsedTocoFlags& parsed_toco_flags,
86 const ParsedModelFlags& parsed_model_flags) {

Callers 2

TESTFunction · 0.70
mainFunction · 0.70

Calls 12

TransformWithStatusFunction · 0.85
ReadInputDataFunction · 0.85
SetContentsFunction · 0.85
DefaultsFunction · 0.85
ImportFunction · 0.70
ExportFunction · 0.70
StatusClass · 0.50
getMethod · 0.45
valueMethod · 0.45

Tested by 1

TESTFunction · 0.56