Update TIDL network data structure
[tidl/tidl-api.git] / tidl_api / src / executor.cpp
index ca5969623d8f90f9f41eeba07d4be0be8d4a2246..d83efe864f11b95bb5eb9b9222dddb031aa6bb43 100644 (file)
@@ -120,9 +120,8 @@ bool ExecutorImpl::Initialize(const Configuration& configuration)
     // Read network from file into network struct in TIDL_CreateParams
     sTIDL_Network_t *net = &(shared_createparam.get())->net;
 
-    bool status = ReadBinary(configuration_m.netBinFile,
-                             reinterpret_cast<char *>(net),
-                             sizeof(sTIDL_Network_t));
+    bool status = ReadNetworkBinary(configuration_m.netBinFile,
+                                    reinterpret_cast<char *>(net));
     assert(status != false);
 
     // Force to run full network if runFullNet is set