Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

onnxruntime: 1.13.1 -> 1.15.1 and build on Darwin #226734

Merged
merged 3 commits into from
Aug 3, 2023

Conversation

cbourjau
Copy link
Contributor

@cbourjau cbourjau commented Apr 17, 2023

Description of changes

Update onnxruntime to the latest version and build it on Darwin. The build system saw several changes with the latest release. Most notably upstream has ceased to use git submodules for its dependencies in favor of cmake's FetchContent functionality.

Release notes:
https://github.com/microsoft/onnxruntime/releases/tag/v1.15.0

Other changes:

  • mmcv was disabled on Darwin due to pytorch related problems with the
    test suite. This is not a regression since it was previously blocked
    on this package not being available on Darwin.
  • piper-tts gained a patch to deal with a breaking change in the
    onnxruntime API
Things done
  • Built on platform(s)
    • x86_64-linux
    • aarch64-linux
    • x86_64-darwin
    • aarch64-darwin
  • For non-Linux: Is sandbox = true set in nix.conf? (See Nix manual)
  • Tested, as applicable:
  • Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
  • Tested basic functionality of all binary files (usually in ./result/bin/)
  • 23.05 Release Notes (or backporting 22.11 Release notes)
    • (Package updates) Added a release notes entry if the change is major or breaking
    • (Module updates) Added a release notes entry if the change is significant
    • (Module addition) Added a release notes entry if adding a new NixOS module
  • Fits CONTRIBUTING.md.

Copy link
Contributor

@yamashitax yamashitax left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Result of nixpkgs-review pr 226734 run on aarch64-darwin 1

3 packages failed to build:
  • onnxruntime
  • onnxruntime.dev
  • onnxruntime.dist
`nixpkgs-review pr` output:

$ git -c fetch.prune=false fetch --no-tags --force https://github.com/NixOS/nixpkgs master:refs/nixpkgs-review/0 pull/226734/head:refs/nixpkgs-review/1
remote: Enumerating objects: 21, done.
remote: Counting objects: 100% (21/21), done.
remote: Compressing objects: 100% (17/17), done.
remote: Total 21 (delta 7), reused 9 (delta 2), pack-reused 0
Unpacking objects: 100% (21/21), 98.32 KiB | 1.31 MiB/s, done.
From https://github.com/NixOS/nixpkgs
0fd3aa7..9eb1b6a master -> refs/nixpkgs-review/0

  • 7cddde92187...be8f9af855e refs/pull/226734/head -> refs/nixpkgs-review/1 (forced update)
    $ git worktree add /Users/yamashita/.cache/nixpkgs-review/pr-226734/nixpkgs 9eb1b6a
    Preparing worktree (detached HEAD 9eb1b6a)
    Updating files: 100% (34561/34561), done.
    HEAD is now at 9eb1b6a Merge pull request exportarr: 1.2.6 -> 1.3.1 #226786 from r-ryantm/auto-update/exportarr
    $ nix-env --extra-experimental-features no-url-literals --option system aarch64-darwin -f /Users/yamashita/.cache/nixpkgs-review/pr-226734/nixpkgs -qaP --xml --out-path --show-trace --no-allow-import-from-derivation
    $ git merge --no-commit --no-ff be8f9af855ef20e93b4b22c1d73519626623162c
    Auto-merging pkgs/top-level/all-packages.nix
    Automatic merge went well; stopped before committing as requested
    $ nix-env --extra-experimental-features no-url-literals --option system aarch64-darwin -f /Users/yamashita/.cache/nixpkgs-review/pr-226734/nixpkgs -qaP --xml --out-path --show-trace --no-allow-import-from-derivation --meta
    1 package updated:
    onnxruntime (1.13.1 → 1.14.1)

$ nix build --extra-experimental-features nix-command no-url-literals --no-link --keep-going --no-allow-import-from-derivation -f /Users/yamashita/.cache/nixpkgs-review/pr-226734/build.nix
error: hash mismatch in fixed-output derivation '/nix/store/jll6r5lvsy3bc9wmxbz7k643fykian8m-source.drv':
specified: sha256-6LG2Q9QSQBG6oynBkgdtXBsUra6LXPOZWR6i0dPMdeY=
got: sha256-LVLEn+e7c8013pwiLzJiiIObyrlbBHYaioO/SWbItPQ=
error: 1 dependencies of derivation '/nix/store/aw64zwxwqski1gij4c52h43n0xxzbyxw-onnxruntime-1.14.1.drv' failed to build
error: 1 dependencies of derivation '/nix/store/l6p33rm26164bfyjrpw4r4cwabgiqyg2-review-shell.drv' failed to build

Link to currently reviewing PR:
#226734

3 packages failed to build:
onnxruntime onnxruntime.dev onnxruntime.dist

error: build log of '/nix/store/aw64zwxwqski1gij4c52h43n0xxzbyxw-onnxruntime-1.14.1.drv!' is not available
error: build log of '/nix/store/9f2dk9h7rjcf82fxz76fnb3xamiw5jgx-onnxruntime-1.14.1' is not available
error: build log of '/nix/store/aw64zwxwqski1gij4c52h43n0xxzbyxw-onnxruntime-1.14.1.drv!
' is not available
error: build log of '/nix/store/d7sl1sasbmk0f5sbid14vf0gk6h7hvv3-onnxruntime-1.14.1-dev' is not available
error: build log of '/nix/store/aw64zwxwqski1gij4c52h43n0xxzbyxw-onnxruntime-1.14.1.drv!*' is not available
error: build log of '/nix/store/8j6prfm74vylwn06xm7k13pzh05lc62c-onnxruntime-1.14.1-dist' is not available

@cbourjau
Copy link
Contributor Author

cbourjau commented Apr 25, 2023

I fixed the hash, thanks! I'm afraid there is also a problem with the Python wheel not being built and included in the outputs correctly.

"-DFETCHCONTENT_SOURCE_DIR_DATE=${howard-hinnant-date}"
"-DFETCHCONTENT_SOURCE_DIR_EIGEN=${eigen}"
"-DFETCHCONTENT_SOURCE_DIR_FLATBUFFERS=${flatbuffers}"
"-DFETCHCONTENT_SOURCE_DIR_GOOGLETEST=${gtest}"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I was able to build it with the already packaged gtest.src even though that is a little bit older.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

IIRC it builds but some tests segfault.

"-DFETCHCONTENT_QUIET=OFF"
"-DFETCHCONTENT_SOURCE_DIR_ABSEIL_CPP=${abseil-cpp_202206.src}"
"-DFETCHCONTENT_SOURCE_DIR_DATE=${howard-hinnant-date}"
"-DFETCHCONTENT_SOURCE_DIR_EIGEN=${eigen}"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It also builds fine for me with the nixpkgs version with eigen.src.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fails for me on MacOS with the following error. The eigen version is 3.4.0.

In file included from /tmp/nix-build-onnxruntime-1.14.1.drv-0/source/onnxruntime/contrib_ops/cpu/inverse.cc:8:
In file included from /tmp/nix-build-onnxruntime-1.14.1.drv-0/source/onnxruntime/core/util/math_cpuonly.h:68:
In file included from /nix/store/aq0wbcxh58drkasgfr0rkidmmi0liwk0-source/Eigen/Core:358:
/nix/store/aq0wbcxh58drkasgfr0rkidmmi0liwk0-source/Eigen/src/Core/PartialReduxEvaluator.h:57:64: error: no matching function for call to 'pset1'
PacketType packetwise_redux_empty_value(const Func& ) { return pset1<PacketType>(0); }

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have seen this error before. ONNX Runtime 1.15.0 will be released in next week. It will use eigen 3.4.0. But I don't see this build error anymore. I am also curious what gets changed.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It seems that that this change did not make it into 1.15.0 after all, did it, @snnn?

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You are right.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there one or two patches we can fetch to fix this? We don't want to vendor.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No, updating the dependencies is a major undertaking by the looks of it.

@ofborg ofborg bot requested review from jonringer and FRidh May 2, 2023 01:31
@nagy
Copy link
Member

nagy commented May 4, 2023

If we decide to use this current approach, the commits would need to be squashed before we want to merge.

I am still thinking about an alternative way. There is a csv-like file at https://github.com/microsoft/onnxruntime/blob/main/cmake/deps.txt where they track the dependencies in a somewhat readable format. If it would be helpful, I could try to come up with an updatescript that generates the expressions that we currently hand-code. With the hope, that this file will be around for a while.

@justinkb
Copy link
Contributor

justinkb commented May 4, 2023

I'm adding ROCm support to this derivation, and finally got the thing to build fully (pretty hacky solution for some problems, the ROCm backend has all kinds of hardcoded things that rely on monolithic ROCm installs, but that's another story). Ended up getting runtime error during some tests (permissions issue probably for nixbld user?), so I changed doCheck from true to !useROCm. This exposes a problem with the build (which is apparently being hidden by doCheck being enabled somehow?):

onnxruntime> CMake Error at /nix/store/12qkbaf261hgmjxybsggw1py4k6kc1hm-source/CMakeLists.txt:303 (message):
onnxruntime>   Protobuf compiler not found
onnxruntime> Call Stack (most recent call first):
onnxruntime>   /nix/store/12qkbaf261hgmjxybsggw1py4k6kc1hm-source/CMakeLists.txt:334 (relative_protobuf_generate_cpp)

you shouldn't have removed protobuf from buildInputs, I believe. Restoring that makes it work again with doCheck false

@FRidh
Copy link
Member

FRidh commented May 4, 2023

I originally removed protobuf in 34d1d33. The expression has changed quite a bit since and I haven't being keeping up.

@justinkb
Copy link
Contributor

justinkb commented May 12, 2023

shouldn't the oneDNN buildInput for python-onnxruntime somehow be put behind an (inherited?) useOneDNN parameter? not sure how to accomplish that, pretty new to nix still

@cbourjau
Copy link
Contributor Author

shouldn't the oneDNN buildInput for python-onnxruntime somehow be put behind an (inherited?) useOneDNN parameter? not sure how to accomplish that, pretty new to nix still

I agree. I didn't want to break the existing behavior, though. Not sure what the usual way to deal with a situation like this is.

@cbourjau
Copy link
Contributor Author

Is there something missing at this point to push this over the finish line?

@ck3d
Copy link
Contributor

ck3d commented May 14, 2023

Result of nixpkgs-review pr 226734 run on x86_64-linux 1

16 packages failed to build:
  • aitrack
  • larynx
  • larynx-train (python310Packages.larynx-train)
  • larynx-train.dist (python310Packages.larynx-train.dist)
  • obs-studio-plugins.obs-backgroundremoval
  • onnxruntime
  • onnxruntime.dev
  • onnxruntime.dist
  • python310Packages.invisible-watermark
  • python310Packages.invisible-watermark.dist
  • python310Packages.mmcv
  • python310Packages.mmcv.dist
  • python310Packages.onnxruntime
  • python310Packages.onnxruntime.dist
  • python311Packages.onnxruntime
  • python311Packages.onnxruntime.dist

@nekowinston
Copy link
Contributor

Result of nixpkgs-review pr 226734 run on x86_64-linux 1

16 packages failed to build:
  • aitrack
  • larynx
  • larynx-train (python310Packages.larynx-train)
  • larynx-train.dist (python310Packages.larynx-train.dist)
  • obs-studio-plugins.obs-backgroundremoval
  • onnxruntime
  • onnxruntime.dev
  • onnxruntime.dist
  • python310Packages.invisible-watermark
  • python310Packages.invisible-watermark.dist
  • python310Packages.mmcv
  • python310Packages.mmcv.dist
  • python310Packages.onnxruntime
  • python310Packages.onnxruntime.dist
  • python311Packages.onnxruntime
  • python311Packages.onnxruntime.dist

onnxruntime logs gist


Result of nixpkgs-review pr 226734 run on aarch64-darwin 1

4 packages marked as broken and skipped:
  • larynx-train
  • larynx-train.dist
  • python310Packages.larynx-train
  • python310Packages.larynx-train.dist
2 packages failed to build:
  • python310Packages.mmcv
  • python310Packages.mmcv.dist
9 packages built:
  • onnxruntime
  • onnxruntime.dev
  • onnxruntime.dist
  • python310Packages.invisible-watermark
  • python310Packages.invisible-watermark.dist
  • python310Packages.onnxruntime
  • python310Packages.onnxruntime.dist
  • python311Packages.onnxruntime
  • python311Packages.onnxruntime.dist

python310Packages.mmcv gist

@cbourjau
Copy link
Contributor Author

Is there one or two patches we can fetch to fix this? We don't want to vendor.

It appears that there is a major update coming down the pike which will lift some of the currently outdated dependencies to a current version: https://github.com/microsoft/onnxruntime/pull/15470/files That PR is unfortunately a little out of sync with the main branch. It appears that Eigen, as stated by @snnn here too, has already been updated to 3.4 in main: https://github.com/microsoft/onnxruntime/blob/main/cmake/deps.txt#L44

@ofborg ofborg bot added the 8.has: package (new) This PR adds a new package label Jul 8, 2023
@mweinelt
Copy link
Member

Result of nixpkgs-review pr 226734 run on x86_64-linux 1

22 packages built:
  • aitrack
  • livecaptions
  • microsoft-wil
  • obs-studio-plugins.obs-backgroundremoval
  • onnxruntime
  • onnxruntime.dev
  • onnxruntime.dist
  • piper-train (python310Packages.piper-train)
  • piper-train.dist (python310Packages.piper-train.dist)
  • piper-tts
  • python310Packages.faster-whisper
  • python310Packages.faster-whisper.dist
  • python310Packages.invisible-watermark
  • python310Packages.invisible-watermark.dist
  • python310Packages.mmcv
  • python310Packages.mmcv.dist
  • python310Packages.onnxruntime
  • python310Packages.onnxruntime.dist
  • python311Packages.onnxruntime
  • python311Packages.onnxruntime.dist
  • whisper-ctranslate2
  • whisper-ctranslate2.dist

@mweinelt
Copy link
Member

@cbourjau Are you still planning to finish this up?

, re2
, zlib
, microsoft-gsl
, microsoft-wil
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

To my embarrassment, it appears that microsoft-wil is not needed after all to build onnxruntime

@mweinelt
Copy link
Member

Any reason this is still marked as a draft?

@cbourjau
Copy link
Contributor Author

Any reason this is still marked as a draft?

When I ran nixpkgs-review on the PR yesterday I got plenty of errors originating from Tensorflow primarily. I'm not sure where those come from. For that matter, it is probably a good idea to get some review :D Thanks for asking!

@cbourjau cbourjau marked this pull request as ready for review July 31, 2023 09:02
@mweinelt
Copy link
Member

Result of nixpkgs-review pr 226734 run on x86_64-linux 1

4 packages marked as broken and skipped:
  • python311Packages.faster-whisper
  • python311Packages.faster-whisper.dist
  • python311Packages.tf2onnx
  • python311Packages.tf2onnx.dist
2 packages failed to build:
  • python311Packages.mmcv
  • python311Packages.mmcv.dist
33 packages built:
  • aitrack
  • livecaptions
  • obs-studio-plugins.obs-backgroundremoval
  • onnxruntime
  • onnxruntime.dev
  • onnxruntime.dist
  • piper-train (python310Packages.piper-train)
  • piper-train.dist (python310Packages.piper-train.dist)
  • piper-tts
  • python310Packages.faster-whisper
  • python310Packages.faster-whisper.dist
  • python310Packages.insightface
  • python310Packages.insightface.dist
  • python310Packages.invisible-watermark
  • python310Packages.invisible-watermark.dist
  • python310Packages.mmcv
  • python310Packages.mmcv.dist
  • python310Packages.onnxruntime
  • python310Packages.onnxruntime.dist
  • python310Packages.tf2onnx
  • python310Packages.tf2onnx.dist
  • python310Packages.unstructured-inference
  • python310Packages.unstructured-inference.dist
  • python311Packages.insightface
  • python311Packages.insightface.dist
  • python311Packages.invisible-watermark
  • python311Packages.invisible-watermark.dist
  • python311Packages.onnxruntime
  • python311Packages.onnxruntime.dist
  • python311Packages.unstructured-inference
  • python311Packages.unstructured-inference.dist
  • whisper-ctranslate2
  • whisper-ctranslate2.dist

@mweinelt
Copy link
Member

mweinelt commented Aug 2, 2023

I see the following test failure on aarch64-linux:

onnxruntime-aarch64-linux> [----------] 15 tests from NhwcTransformerTests
onnxruntime-aarch64-linux> [ RUN      ] NhwcTransformerTests.Conv
onnxruntime-aarch64-linux> [       OK ] NhwcTransformerTests.Conv (17 ms)
onnxruntime-aarch64-linux> [ RUN      ] NhwcTransformerTests.ConvBlockBinary
onnxruntime-aarch64-linux> [       OK ] NhwcTransformerTests.ConvBlockBinary (14 ms)
onnxruntime-aarch64-linux> [ RUN      ] NhwcTransformerTests.ConvMaxPool
onnxruntime-aarch64-linux>     Which is: 0
onnxruntime-aarch64-linux> Google Test trace:
onnxruntime-aarch64-linux> /build/source/onnxruntime/test/common/tensor_op_test_utils.cc:14: ORT test random seed: 2345
onnxruntime-aarch64-linux> /build/source/onnxruntime/test/optimizer/nhwc_transformer_test.cc:560: Failure
onnxruntime-aarch64-linux> Expected equality of these values:
onnxruntime-aarch64-linux>   op_to_count["Transpose"]
onnxruntime-aarch64-linux>     Which is: 0
onnxruntime-aarch64-linux>   2
onnxruntime-aarch64-linux> Google Test trace:
onnxruntime-aarch64-linux> /build/source/onnxruntime/test/common/tensor_op_test_utils.cc:14: ORT test random seed: 2345
onnxruntime-aarch64-linux> /build/source/onnxruntime/test/optimizer/nhwc_transformer_test.cc:559: Failure
onnxruntime-aarch64-linux> Expected equality of these values:
onnxruntime-aarch64-linux>   op_to_count["com.microsoft.NhwcFusedConv"]
onnxruntime-aarch64-linux>     Which is: 0
onnxruntime-aarch64-linux>   1
onnxruntime-aarch64-linux> Google Test trace:
onnxruntime-aarch64-linux> /build/source/onnxruntime/test/common/tensor_op_test_utils.cc:14: ORT test random seed: 2345
onnxruntime-aarch64-linux> /build/source/onnxruntime/test/optimizer/nhwc_transformer_test.cc:560: Failure
onnxruntime-aarch64-linux> Expected equality of these values:
onnxruntime-aarch64-linux>   op_to_count["Transpose"]
onnxruntime-aarch64-linux>     Which is: 0
onnxruntime-aarch64-linux>   2
onnxruntime-aarch64-linux> Google Test trace:
onnxruntime-aarch64-linux> /build/source/onnxruntime/test/common/tensor_op_test_utils.cc:14: ORT test random seed: 2345
onnxruntime-aarch64-linux> /build/source/onnxruntime/test/optimizer/nhwc_transformer_test.cc:559: Failure
onnxruntime-aarch64-linux> Expected equality of these values:
onnxruntime-aarch64-linux>   op_to_count["com.microsoft.NhwcFusedConv"]
onnxruntime-aarch64-linux>     Which is: 0
onnxruntime-aarch64-linux>   1
onnxruntime-aarch64-linux> Google Test trace:
onnxruntime-aarch64-linux> /build/source/onnxruntime/test/common/tensor_op_test_utils.cc:14: ORT test random seed: 2345
onnxruntime-aarch64-linux> /build/source/onnxruntime/test/optimizer/nhwc_transformer_test.cc:560: Failure
onnxruntime-aarch64-linux> Expected equality of these values:
onnxruntime-aarch64-linux>   op_to_count["Transpose"]
onnxruntime-aarch64-linux>     Which is: 0
onnxruntime-aarch64-linux>   2
onnxruntime-aarch64-linux> Google Test trace:
onnxruntime-aarch64-linux> Expected equality of these values:
onnxruntime-aarch64-linux>   2
onnxruntime-aarch64-linux> Google Test trace:
onnxruntime-aarch64-linux> /build/source/onnxruntime/test/common/tensor_op_test_utils.cc:14: ORT test random seed: 2345
onnxruntime-aarch64-linux> /build/source/onnxruntime/test/optimizer/nhwc_transformer_test.cc:593: Failure
onnxruntime-aarch64-linux> Expected equality of these values:
onnxruntime-aarch64-linux>   op_to_count["com.microsoft.NhwcFusedConv"]
onnxruntime-aarch64-linux>     Which is: 0
onnxruntime-aarch64-linux>   1
onnxruntime-aarch64-linux> Google Test trace:
onnxruntime-aarch64-linux> /build/source/onnxruntime/test/common/tensor_op_test_utils.cc:14: ORT test random seed: 2345
onnxruntime-aarch64-linux> /build/source/onnxruntime/test/optimizer/nhwc_transformer_test.cc:594: Failure
onnxruntime-aarch64-linux> Expected equality of these values:
onnxruntime-aarch64-linux>   op_to_count["com.ms.internal.nhwc.MaxPool"]
onnxruntime-aarch64-linux>     Which is: 0
onnxruntime-aarch64-linux>   1
onnxruntime-aarch64-linux> Google Test trace:
onnxruntime-aarch64-linux> /build/source/onnxruntime/test/common/tensor_op_test_utils.cc:14: ORT test random seed: 2345
onnxruntime-aarch64-linux> /build/source/onnxruntime/test/optimizer/nhwc_transformer_test.cc:595: Failure
onnxruntime-aarch64-linux> Expected equality of these values:
onnxruntime-aarch64-linux>   op_to_count["Transpose"]
onnxruntime-aarch64-linux>     Which is: 0
onnxruntime-aarch64-linux>   2
onnxruntime-aarch64-linux> Google Test trace:
onnxruntime-aarch64-linux> /build/source/onnxruntime/test/common/tensor_op_test_utils.cc:14: ORT test random seed: 2345
onnxruntime-aarch64-linux> /build/source/onnxruntime/test/optimizer/nhwc_transformer_test.cc:593: Failure
onnxruntime-aarch64-linux> Expected equality of these values:
onnxruntime-aarch64-linux>   op_to_count["com.microsoft.NhwcFusedConv"]
onnxruntime-aarch64-linux>     Which is: 0
onnxruntime-aarch64-linux>   1
onnxruntime-aarch64-linux> Google Test trace:
onnxruntime-aarch64-linux> /build/source/onnxruntime/test/common/tensor_op_test_utils.cc:14: ORT test random seed: 2345
onnxruntime-aarch64-linux> /build/source/onnxruntime/test/optimizer/nhwc_transformer_test.cc:594: Failure
onnxruntime-aarch64-linux> Expected equality of these values:
onnxruntime-aarch64-linux>   op_to_count["com.ms.internal.nhwc.MaxPool"]
onnxruntime-aarch64-linux>     Which is: 0
onnxruntime-aarch64-linux>   1
onnxruntime-aarch64-linux>     Which is: 0
onnxruntime-aarch64-linux> /build/source/onnxruntime/test/optimizer/nhwc_transformer_test.cc:630: Failure
onnxruntime-aarch64-linux> Expected equality of these values:
onnxruntime-aarch64-linux>   op_to_count["com.microsoft.NhwcFusedConv"]
onnxruntime-aarch64-linux>     Which is: 0
onnxruntime-aarch64-linux>   2
onnxruntime-aarch64-linux> Google Test trace:
onnxruntime-aarch64-linux> /build/source/onnxruntime/test/common/tensor_op_test_utils.cc:14: ORT test random seed: 2345
onnxruntime-aarch64-linux> /build/source/onnxruntime/test/optimizer/nhwc_transformer_test.cc:631: Failure
onnxruntime-aarch64-linux> Expected equality of these values:
onnxruntime-aarch64-linux>   op_to_count["com.ms.internal.nhwc.GlobalAveragePool"]
onnxruntime-aarch64-linux>     Which is: 0
onnxruntime-aarch64-linux>   2
onnxruntime-aarch64-linux> Google Test trace:
onnxruntime-aarch64-linux> /build/source/onnxruntime/test/common/tensor_op_test_utils.cc:14: ORT test random seed: 2345
onnxruntime-aarch64-linux> /build/source/onnxruntime/test/optimizer/nhwc_transformer_test.cc:632: Failure
onnxruntime-aarch64-linux> Expected equality of these values:
onnxruntime-aarch64-linux>   op_to_count["Transpose"]
onnxruntime-aarch64-linux>     Which is: 0
onnxruntime-aarch64-linux>   2
onnxruntime-aarch64-linux> Google Test trace:
onnxruntime-aarch64-linux> /build/source/onnxruntime/test/common/tensor_op_test_utils.cc:14: ORT test random seed: 2345
onnxruntime-aarch64-linux> [  FAILED  ] NhwcTransformerTests.ConvGlobalAveragePoolFp16 (5 ms)
onnxruntime-aarch64-linux> [ RUN      ] NhwcTransformerTests.ConvAveragePoolFp16
onnxruntime-aarch64-linux> /build/source/onnxruntime/test/optimizer/nhwc_transformer_test.cc:667: Failure
onnxruntime-aarch64-linux> Expected equality of these values:
onnxruntime-aarch64-linux>   op_to_count["com.microsoft.NhwcFusedConv"]
onnxruntime-aarch64-linux>     Which is: 0
onnxruntime-aarch64-linux>   2
onnxruntime-aarch64-linux> Google Test trace:
onnxruntime-aarch64-linux> /build/source/onnxruntime/test/common/tensor_op_test_utils.cc:14: ORT test random seed: 2345
onnxruntime-aarch64-linux> /build/source/onnxruntime/test/optimizer/nhwc_transformer_test.cc:668: Failure
onnxruntime-aarch64-linux> Expected equality of these values:
onnxruntime-aarch64-linux>   op_to_count["com.ms.internal.nhwc.AveragePool"]
onnxruntime-aarch64-linux>     Which is: 0
onnxruntime-aarch64-linux>   2
onnxruntime-aarch64-linux> Google Test trace:
onnxruntime-aarch64-linux> [  FAILED  ] NhwcTransformerTests.ConvAveragePoolFp16 (5 ms)
onnxruntime-aarch64-linux> [----------] 15 tests from NhwcTransformerTests (675 ms total)

@mweinelt
Copy link
Member

mweinelt commented Aug 2, 2023

Removed the test file on aarch64-linux. Compiles on all 4 supported targets now.

@mweinelt mweinelt merged commit 6e877ea into NixOS:master Aug 3, 2023
@cbourjau cbourjau deleted the onnxruntime-macos branch August 3, 2023 08:53
@cbourjau
Copy link
Contributor Author

cbourjau commented Aug 3, 2023

Thanks for pushing this over the finish line, @mweinelt ! I had some issues with tensorflow related packages on Monday, but am glad to finally see this PR land! I hope things will get a little easier with the next onnxruntime release!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.