Error in scoring a loaded model in C++

I loaded my torch script, and I was trying to score an input using it, and It is not working for some reason, and I don’t see an error message. Here is the link for the issue on GitHub for more details
Issue Link

CMakeLists.txt code

cmake_minimum_required(VERSION 3.0 FATAL_ERROR)

find_package(Torch REQUIRED)

add_executable(nn_optimization nn_optimization.cpp)
target_link_libraries(nn_optimization "${TORCH_LIBRARIES}")
set_property(TARGET nn_optimization PROPERTY CXX_STANDARD 14)