Skip to content

Commit

Permalink
[libtorch] support onnx v1.16.0
Browse files Browse the repository at this point in the history
  • Loading branch information
luncliff committed Aug 25, 2024
1 parent fa52e2d commit 9e67876
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 5 deletions.
8 changes: 5 additions & 3 deletions ports/libtorch/fix-build.patch
Original file line number Diff line number Diff line change
Expand Up @@ -50,13 +50,15 @@ index b46a444..255d7f4 100644
- endif()
- set_property(TARGET onnx_proto PROPERTY IMPORTED_LOCATION ${ONNX_PROTO_LIBRARY})
- message("-- Found onnx: ${ONNX_LIBRARY} ${ONNX_PROTO_LIBRARY}")
- list(APPEND Caffe2_DEPENDENCY_LIBS onnx_proto onnx)
+ find_package(ONNX REQUIRED)
+ set(ONNX_LIBRARY onnx)
+ set(ONNX_PROTO_LIBRARY onnx_proto)
+ set(ONNX_LIBRARY ONNX::onnx)
+ set(ONNX_PROTO_LIBRARY ONNX::onnx_proto)
+ message("-- Found onnx")
list(APPEND Caffe2_DEPENDENCY_LIBS onnx_proto onnx)
+ list(APPEND Caffe2_DEPENDENCY_LIBS ONNX::onnx_proto ONNX::onnx)
endif()
include_directories(${FOXI_INCLUDE_DIRS})
list(APPEND Caffe2_DEPENDENCY_LIBS "${FOXI_LOADER_LIBPATH}")
diff --git a/pyproject.toml b/pyproject.toml
index eb764cb..c70f317 100644
--- a/pyproject.toml
Expand Down
2 changes: 1 addition & 1 deletion ports/libtorch/vcpkg.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "libtorch",
"version": "2.1.2",
"port-version": 5,
"port-version": 6,
"description": "Tensors and Dynamic neural networks in Python with strong GPU acceleration",
"homepage": "https://pytorch.org/",
"license": null,
Expand Down
2 changes: 1 addition & 1 deletion versions/baseline.json
Original file line number Diff line number Diff line change
Expand Up @@ -5134,7 +5134,7 @@
},
"libtorch": {
"baseline": "2.1.2",
"port-version": 5
"port-version": 6
},
"libtorrent": {
"baseline": "2.0.10",
Expand Down
5 changes: 5 additions & 0 deletions versions/l-/libtorch.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "81ce7abeac23c854efe26b5c7512071ee60f9b2a",
"version": "2.1.2",
"port-version": 6
},
{
"git-tree": "6d1fe8207d6f9680a243fe20ed6a222f1174d708",
"version": "2.1.2",
Expand Down

0 comments on commit 9e67876

Please sign in to comment.