Skip to content

Fix WinML Test Case: create LearningModelBinding for every testcase - #13587

Merged
Yi Zhang (mszhanyi) merged 4 commits into
mainfrom
zhanyi/fixfcntest
Nov 9, 2022
Merged

Yi Zhang (mszhanyi) merged 4 commits into
mainfrom
zhanyi/fixfcntest

Conversation

@mszhanyi

@mszhanyi Yi Zhang (mszhanyi) commented Nov 8, 2022 •

Copy link
Copy Markdown
Contributor

Description

Fixes #13509

Motivation and Context

The exception was caused by the incorrect fetches, which was from the binding with last test cases.

std::vector<OrtValue> fetches(output_names_len);
for (size_t i = 0; i != output_names_len; ++i) {
if (output[i] != nullptr) {
::OrtValue& value = *(output[i]);
if (value.Fence())
value.Fence()->BeforeUsingAsOutput(onnxruntime::kCpuExecutionProvider, queue_id);
fetches[i] = value;

@mszhanyi
Yi Zhang (mszhanyi) merged commit a9a9c34 into main Nov 9, 2022
@mszhanyi
Yi Zhang (mszhanyi) deleted the zhanyi/fixfcntest branch November 9, 2022 03:20
MS (simon-moo) pushed a commit to simon-moo/onnxruntime that referenced this pull request Dec 21, 2022
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.

FCN_ResNet_50 and FCN_ResNet_101 Failed in WinML workflow

2 participants