serizba / cppflow

Run TensorFlow models in C++ without installation and without Bazel

Home Page:https://serizba.github.io/cppflow/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Exception thrown atgetting exception: 0x00007FFAE2A925F0 (tensorflow.dll) in No_DLL_GRU_Model_Test_PRJCT.exe: 0xC0000005: Access violation reading location 0x0000000000000000.

aliaamir786 opened this issue · comments

keep getting exception while running/making inference in C using tensorflow C API along with CPPFLOW.
Exception thrown at 0x00007FFAE2A925F0 (tensorflow.dll) in No_DLL_GRU_Model_Test_PRJCT.exe: 0xC0000005: Access violation reading location 0x0000000000000000, another thing to mention that program is terminating with exception and doesnot providing any prediction output.

Results : 2023-12-11 15:07:14.100870: I tensorflow/cc/saved_model/reader.cc:45] Reading SavedModel from: ../Nox_select_GRU_kerasModel
2023-12-11 15:07:14.132228: I tensorflow/cc/saved_model/reader.cc:89] Reading meta graph with tags { serve }
2023-12-11 15:07:14.136150: I tensorflow/cc/saved_model/reader.cc:130] Reading SavedModel debug info (if present) from: ../Nox_select_GRU_kerasModel
2023-12-11 15:07:14.144030: I tensorflow/core/platform/cpu_feature_guard.cc:193] This TensorFlow binary is optimized with oneAPI Deep Neural Network Library (oneDNN) to use the following CPU instructions in performance-critical operations: AVX2
To enable them in other operations, rebuild TensorFlow with the appropriate compiler flags.
2023-12-11 15:07:14.365238: I tensorflow/compiler/mlir/mlir_graph_optimization_pass.cc:357] MLIR V1 optimization pass is not enabled
2023-12-11 15:07:14.384676: I tensorflow/cc/saved_model/loader.cc:229] Restoring SavedModel bundle.
2023-12-11 15:07:14.571191: I tensorflow/cc/saved_model/loader.cc:213] Running initialization op on SavedModel bundle at path: ../Nox_select_GRU_kerasModel
2023-12-11 15:07:14.682839: I tensorflow/cc/saved_model/loader.cc:305] SavedModel load for tags { serve }; Status: success: OK. Took 583425 microseconds.
Input Vector: 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 122 12 12 12 12 12 12 12 21 21 32 32 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 11 1 1 1 1 1 1 1 1 1 1 during compilation , there is no error in program, during execution observing exception without getting predicted output.
Capture