Skip to content

Android CI - #1600

Merged
snnn merged 17 commits into
microsoft:masterfrom
daquexian:android_ci
Oct 5, 2019
Merged

Android CI#1600
snnn merged 17 commits into
microsoft:masterfrom
daquexian:android_ci

Conversation

@daquexian

Copy link
Copy Markdown
Contributor

Description:

Currently, the yaml file of Android CI is tools/ci_build/github/azure-pipelines/android-x86_64-crosscompile-ci-pipeline.yml

@daquexian
daquexian requested a review from a team as a code owner August 9, 2019 10:11
Comment thread cgmanifest.json Outdated
"type":"git",
"git": {
"commitHash": "65b8e0f9979fbade16e3becbdfa69c0764946f72",
"commitHash": "a25e13886e00eed06620d9d59e1ac1eaa18b25b7",

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Why do you change this?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

This is what's in the description "Update ONNX for onnx/onnx#2221, which fix segfault on Android"

but, @daquexian do you know the root cause in ONNX which leads to the segfault please? if yes, could you share more details about it please? Thank you!

@daquexian daquexian Aug 10, 2019

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

@snnn @linkerzhang It is a bug in onnx. ctx.getInputType(1) (https://github.com/onnx/onnx/pull/2221/files#diff-f24e7f9545820de198f21ac7c7d37d10R1542) is null on https://github.com/onnx/onnx/tree/master/onnx/backend/test/data/pytorch-operator/test_operator_repeat. It causes onnx_test_runner crash on this test case, so I proposed a PR to onnx to fix it.

Comment thread tools/ci_build/build.py Outdated
@linkerzhang

Copy link
Copy Markdown
Contributor

/azp run

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines successfully started running 21 pipeline(s), but failed to run 1 pipeline(s).

@snnn

snnn commented Aug 12, 2019

Copy link
Copy Markdown
Contributor

/azp run

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines successfully started running 21 pipeline(s), but failed to run 1 pipeline(s).

@daquexian

Copy link
Copy Markdown
Contributor Author

@linkerzhang @snnn could you please run the CI? BTW, is Android CI enabled now?

@snnn

snnn commented Aug 26, 2019

Copy link
Copy Markdown
Contributor

/azp run

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines successfully started running 21 pipeline(s), but failed to run 1 pipeline(s).

@daquexian

Copy link
Copy Markdown
Contributor Author

@snnn Could you please trigger the CI again? I have fixed windows ci


#if (defined(__amd64__) || defined(_M_X64)) && not defined(__ANDROID__)
#if defined(__amd64__) || defined(_M_X64)
#ifndef __ANDROID__

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I don't understand. In which case they could be both defined?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Android can run on x86 and x64 processors, e.g., android x64 emulators

@snnn

snnn commented Aug 28, 2019

Copy link
Copy Markdown
Contributor

/azp run

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines successfully started running 21 pipeline(s), but failed to run 1 pipeline(s).

@daquexian

Copy link
Copy Markdown
Contributor Author

@snnn @linkerzhang Build passed but CI failed due to an error "The Component Detection tool experienced a failure. See the logs for more information"

@daquexian

Copy link
Copy Markdown
Contributor Author

@linkerzhang @snnn @shahasad Android CI works now

@shahasad

Copy link
Copy Markdown
Contributor

/azp run

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines successfully started running 19 pipeline(s).

@shahasad

Copy link
Copy Markdown
Contributor

The Android CI fails on the code (when master is merged)
https://dev.azure.com/onnxruntime/onnxruntime/_build/results?buildId=74923

@snnn
snnn merged commit e071a12 into microsoft:master Oct 5, 2019
@snnn

snnn commented Oct 5, 2019

Copy link
Copy Markdown
Contributor

@shahasad Pranav will fix the test error.

yuslepukhin pushed a commit that referenced this pull request Mar 17, 2026
…1600)

## Describe your changes
- `onnxruntime.tools.onnx_model_utils.fix_output_shapes` cannot handle
large models (#1595), so we use the ort shape infer helper and handle
the logic ourselves. This also means it can now handle models with
contrib operators too.
- allow passing 0 as dim_value. this case is possible when creating a
prompt processing model from a dynamic shaped llm where we want to make
the past kv cache empty.

## Checklist before requesting a review
- [ ] Add unit tests for this change.
- [ ] Make sure all tests can pass.
- [ ] Update documents if necessary.
- [ ] Lint and apply fixes to your code by running `lintrunner -a`
- [ ] Is this a user-facing change? If yes, give a description of this
change to be included in the release notes.
- [ ] Is this PR including examples changes? If yes, please remember to
update [example
documentation](https://github.com/microsoft/Olive/blob/main/docs/source/examples.md)
in a follow-up PR.

## (Optional) Issue link
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants