Skip to content

Commit

Permalink
Update header files #1
Browse files Browse the repository at this point in the history
  • Loading branch information
Rjasuja committed Nov 20, 2023
1 parent 9355739 commit ebf4f2a
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 5 deletions.
1 change: 1 addition & 0 deletions tensorflow/lite/delegates/openvino/modular/graph_builder.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ class GraphBuilder {
void setResultNode(const int index, std::shared_ptr<ov::Node> resultNode);
void setOutputAtOperandIndex(int index, ov::Output<ov::Node> output);
ov::Output<ov::Node> getOperationOutput(int index);
void GraphBuilder(std::vector<int> tensors_to_replace);
private:
std::vector<ov::Output<ov::Node>> outputAtOperandIndex;
std::vector<std::shared_ptr<ov::opset3::Parameter>> inputParams;
Expand Down
14 changes: 9 additions & 5 deletions tensorflow/lite/delegates/openvino/modular/graph_manager.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
#include "tensorflow/lite/c/common."
#include "tensorflow/lite/c/common.h"
#include "tensorflow/lite/tools/logging.h"
#include "graph_builder.h"
#include "operation_builder.h"

namespace tflite {
namespace openvinodelegate {
Expand All @@ -8,13 +10,15 @@ class GraphManager {
TfLiteStatus initializeGraph();
TfLiteStatus generateGraph();
void createInputParams();
void GraphManager(TfLiteContext* context, const TfLiteDelegateParams* params) : params_(params), context_(context) {}
private:
GraphBuilder* graphBuilder;
OperationBuilder* opBuilder;
void instantitateOpClassFactory();
std::vector<std::shared_ptr<OperationsBase>> opNodes;
TfLiteContent* context;
const TfLiteDelegateParams* params;
//to instantiate classes for each op before actually calling createNode() for that op
void instantiateOpClassFactory();
std::vector<std::shared_ptr<OperationBuilder>> opNodes;
TfLiteContent* context_;
const TfLiteDelegateParams* params_;
std::vector<int> tensors_to_replace;
};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ limitations under the License.

#include "NgraphNodes.h"
#include "ov_utils.h"
#include "ie_manager.h"
#include "tensorflow/lite/builtin_ops.h"
#include "tensorflow/lite/delegates/utils/simple_delegate.h"
#include "tensorflow/lite/tools/logging.h"
Expand All @@ -35,6 +36,9 @@ class OpenVINODelegateKernel : public SimpleDelegateKernelInterface {
TfLiteStatus Prepare(TfLiteContext *context, TfLiteNode *node) override;

TfLiteStatus Eval(TfLiteContext *context, TfLiteNode *node) override;
private:
GraphManager* graphManager;
IEManager* ieManager;
};

} // namespace openvinodelegate
Expand Down

0 comments on commit ebf4f2a

Please sign in to comment.