Skip to content

Conversation

@zhangxiang1993
Copy link
Contributor

No description provided.

@zhangxiang1993 zhangxiang1993 requested a review from a team as a code owner February 24, 2020 22:23
@ryanlai2
Copy link
Contributor

Should the code provide examples both unbound and bound outputs?

@zhangxiang1993
Copy link
Contributor Author

I think we should pick one, bound or unbound, to make the sample focus just on how to use batch.


In reply to: 590580532 [](ancestors = 590580532)

@zhangxiang1993
Copy link
Contributor Author

Added the binding output code back as comments


In reply to: 590606427 [](ancestors = 590606427,590580532)


// Print Results

// conment three lines below if bind output
Copy link
Contributor

Choose a reason for hiding this comment

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

Typo : Comment out three lines below when using bound output.

auto outputValue = results.Outputs().Lookup(L"softmaxout_1").as<TensorFloat>(); // Get outputs by output name
auto outputShape = outputValue.Shape();
printf("output dimensions [%d, %d, %d, %d]\n", outputShape.GetAt(0), outputShape.GetAt(1), outputShape.GetAt(2), outputShape.GetAt(3));
// conment three lines above if bind output
Copy link
Contributor

Choose a reason for hiding this comment

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

Typo : Comment out three lines above when using bound output.

@zhangxiang1993 zhangxiang1993 merged commit c531eab into master Feb 25, 2020
@martinb35 martinb35 deleted the user/xianz/batchSample branch June 21, 2021 19:04
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.

3 participants