使用 Jetpack 6.2.1 中的 toch 2.8.0 出现 protobuf 冲突

在 JetPack 6.2.1 中安装 jp6/cu126/: torch-2.8.0 metadata and description 后,protopub 会报错,我查询到 Ubuntu 22.04 的默认 protoc 是 3.12.4 的版本,这个 torch 里面使用的是 3.13.0 的版本

cat /usr/local/lib/python3.10/dist-packages/torch/include/google/protobuf/stubs/common.h | grep GOOGLE_PROTOBUF_MIN_PROTOC_VERSION 
#define GOOGLE_PROTOBUF_MIN_PROTOC_VERSION 3013000
cat /usr/include/google/protobuf/stubs/common.h | grep GOOGLE_PROTOBUF_MIN_PROTOC_VERSION
#define GOOGLE_PROTOBUF_MIN_PROTOC_VERSION 3012000

这两个版本不一致导致,我运行的时候出现异常,我引用了 torch 的 include,直接把我的头文件 pb 的头文件也引用到这里了,有什么方法可以解决吗?

*** Please note that this reply is generated by LLM automatically ***

Based on the provided context, I will provide a comprehensive answer to the question.

The question seems to be asking about the configuration and description of Jetson AGX Orin, specifically with regards to JetPack 6.2.1, JP6-CU126, Torch 2.8.0, and other related metadata.

From the provided context, we can gather the following information:

  1. Jetson AGX Orin: This is a production module (P3701-0005) that is compatible with the Jetson AGX Orin reference carrier board (P3737-0000). It has a configuration file named jetson-agx-orin-devkit-industrial.conf that flashes the QSPI-NOR and eMMC.
  2. JetPack 6.2.1: This is a software development kit (SDK) for Jetson modules, including the Jetson AGX Orin. It provides a set of tools and libraries for developing applications on the Jetson platform.
  3. JP6-CU126: This is likely a specific version or configuration of the JetPack SDK, but the exact meaning is unclear from the provided context.
  4. Torch 2.8.0: This is a version of the PyTorch deep learning framework, which is supported on the Jetson platform.
  5. Ubuntu 22.04: This is the operating system version that is supported on the Jetson platform.
  6. Protobuf 3.12.4: This is a version of the Protocol Buffers library, which is used for serializing structured data.
  7. Torch 3.1.3: This is another version of the PyTorch deep learning framework.

Comparing the different versions and configurations mentioned in the question, we can see that:

  • JetPack 6.2.1 is a specific version of the SDK, while JP6-CU126 is likely a specific configuration or variant of that SDK.
  • Torch 2.8.0 and Torch 3.1.3 are different versions of the PyTorch framework, with the latter being a more recent version.
  • Ubuntu 22.04 is the supported operating system version, while Protobuf 3.12.4 is a specific version of the Protocol Buffers library.

In terms of the configuration and description of Jetson AGX Orin, we can see that it has a specific configuration file (jetson-agx-orin-devkit-industrial.conf) that flashes the QSPI-NOR and eMMC. The module is also compatible with the Jetson AGX Orin reference carrier board (P3737-0000).

Overall, the question seems to be asking about the specific configuration and description of Jetson AGX Orin, including the versions of the SDK, operating system, and libraries that are supported.

*** Please give the thumbs up if you get answers you like. Or provide feedback to help us improve the answer. ***

我指的是用到的 protobuf 的问题。

Hi,

Is this related to C++ API?
We test the latest PyTorch prebuilt on JetPack 6.2.1 and it can work as expected.

Thanks.

是的,如果单独是可以正常工作的,但是你们的 protoc 是更高的版本,一旦引入了 pb 文件,就会报错了。

Hi,

Could you share a sample so we can test it locally?
Thanks.