Home | History | Annotate | Download | only in libtextclassifier

Lines Matching refs:Model

17 // Contains classes that can execute different models/parts of a model.
29 #include "tensorflow/contrib/lite/model.h"
34 bool FromModelSpec(const tflite::Model* model_spec,
35 std::unique_ptr<const tflite::FlatBufferModel>* model);
50 const tflite::Model* model =
51 flatbuffers::GetRoot<tflite::Model>(model_spec_buffer->data());
54 if (!model->Verify(verifier)) {
57 return Instance(model);
61 const tflite::Model* model_spec) {
62 std::unique_ptr<const tflite::FlatBufferModel> model;
63 if (!internal::FromModelSpec(model_spec, &model)) {
66 return std::unique_ptr<ModelExecutor>(new ModelExecutor(std::move(model)));
69 // Creates an Interpreter for the model that serves as a scratch-pad for the
80 explicit ModelExecutor(std::unique_ptr<const tflite::FlatBufferModel> model)
81 : model_(std::move(model)) {}
100 // Returns true when the model is ready to be used, false otherwise.
115 std::unique_ptr<const tflite::FlatBufferModel> model,
131 // model params), thus is still thread-safe.