Reduce complexity of ssd_multibox example
[tidl/tidl-api.git] / tinn_api / src / executor_impl.h
index 35842cc069e121b2c4c597fb9d9034ade88ea1bc..704b1f7162bbd6416e4d8b04b6b983d322981fc7 100644 (file)
@@ -42,7 +42,7 @@
 #include "tidl_create_params.h" // for TIDL types
 #include "execution_object.h"
 
-namespace tidl {
+namespace tinn {
 
 
 // One instance across all devices available in the context
@@ -50,7 +50,8 @@ namespace tidl {
 class ExecutorImpl
 {
     public:
-        ExecutorImpl(DeviceType core_type, const DeviceIds& ids);
+        ExecutorImpl(DeviceType core_type, const DeviceIds& ids,
+                     int layersGroupId);
         ~ExecutorImpl() { Cleanup(); }
 
         bool Initialize(const Configuration& configuration);
@@ -64,7 +65,8 @@ class ExecutorImpl
         ExecutionObjects execution_objects_m;
 
     private:
-        void InitializeNetworkCreateParam(TIDL_CreateParams *cp);
+        void InitializeNetworkCreateParam(TIDL_CreateParams *cp,
+                                          const Configuration& configuration);
         bool InitializeNetworkParams(TIDL_CreateParams *cp);
         void Cleanup();
 
@@ -73,6 +75,7 @@ class ExecutorImpl
         up_malloc_ddr<char>  shared_networkparam_heap_m;
         DeviceIds            device_ids_m;
         DeviceType           core_type_m;
+        int                  layers_group_id_m;
 };
 
-} // namespace tidl
+} // namespace tinn