TensorRT get different result in python and c++

Hi @user49985,

Our team managed to fix the C++ build issues, but the cmake file doesn’t work and compiling with g++ manually fails. Please provide a test case that doesn’t use PyTorch.

Here is the error we get:

CMake Error at CMakeLists.txt:5 (find_package):
  By not providing "FindTorch.cmake" in CMAKE_MODULE_PATH this project has
  asked CMake to find a package configuration file provided by "Torch", but
  CMake did not find one.

  Could not find a package configuration file provided by "Torch" with any of
  the following names:

    TorchConfig.cmake
    torch-config.cmake

  Add the installation prefix of "Torch" to CMAKE_PREFIX_PATH or set
  "Torch_DIR" to a directory containing one of the above files.  If "Torch"
  provides a separate development package or SDK, be sure it has been
  installed.


-- Configuring incomplete, errors occurred!

Hi @user49985,

As mentioned above, could you please share with us the complete issue repro scripts and commands.

Thank you.