Skip to content
This repository has been archived by the owner on Nov 17, 2023. It is now read-only.

inference using fp16 for c++ api #14714

Closed
wants to merge 2 commits into from

Conversation

chengzhengxin
Copy link

Description

Load weights according dtype, it's ok for inference fp16 weights.

@Roshrini Roshrini added the pr-awaiting-review PR is waiting for code review label Apr 17, 2019
@roywei
Copy link
Member

roywei commented Apr 29, 2019

@lanking520 could you help find someone to review this? thanks!

@lanking520
Copy link
Member

@leleamol Could you please take a look?

@leleamol
Copy link
Contributor

@chengzhengxin can you please upload the unit tests for this change?

aux_arrays.push_back(nd);
} else {
NDArray nd = NDArray(aux_shapes[i], ctx);
aux_arrays.push_back(nd);
Copy link
Contributor

Choose a reason for hiding this comment

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

can this line be moved to after the if-else instead of adding in if separately and else separately?

arg_arrays.push_back(nd);
} else {
NDArray nd = NDArray(arg_shapes[i], ctx);
arg_arrays.push_back(nd);
Copy link
Contributor

Choose a reason for hiding this comment

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

can this line be moved to after the if-else instead of adding in if separately and else separately?

@pinaraws
Copy link

@mxnet-label-bot add[pr-awaiting-response]

@marcoabreu marcoabreu added the pr-awaiting-response PR is reviewed and waiting for contributor to respond label May 20, 2019
@pinaraws
Copy link

@mxnet-label-bot remove[pr-awaiting-review]

@marcoabreu marcoabreu removed the pr-awaiting-review PR is waiting for code review label May 20, 2019
@abhinavs95
Copy link
Contributor

@chengzhengxin can you please address the review comments?

@piyushghai
Copy link
Contributor

@leleamol Can you also have a look at this PR ?

@Roshrini
Copy link
Member

@chengzhengxin Could you address the comments to move forward with this PR? Thanks

@karan6181
Copy link
Contributor

@chengzhengxin any updates? Could you please also add the unittest for the change? Thanks!

@piyushghai
Copy link
Contributor

@chengzhengxin Can you also rebase the PR with the latest master ?

@roywei
Copy link
Member

roywei commented Aug 19, 2019

@chengzhengxin gentle ping for rebase and update

@chengzhengxin
Copy link
Author

sorry, more things have happened recently, It's too late to deal with it. But this bug has been fixed in #15245

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
pr-awaiting-response PR is reviewed and waiting for contributor to respond
Projects
None yet
Development

Successfully merging this pull request may close these issues.