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

Inner product pd change #195

Merged
merged 2 commits into from
Mar 6, 2018
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
fix output_pd query error
Signed-off-by: caozhong <zhong.z.cao@intel.com>
  • Loading branch information
CaoZhongZ committed Mar 6, 2018
commit fd49c6dc833d410e910551319ba7caac919865ce
4 changes: 2 additions & 2 deletions src/common/inner_product_pd.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -185,14 +185,14 @@ struct inner_product_bwd_weights_pd_t: public primitive_desc_t {
virtual const memory_pd_t *input_pd(int index = 0) const override {
switch (index) {
case 0: return src_pd();
case 1: return diff_dst_pd(1);
case 1: return diff_dst_pd();
default: return nullptr;
}
}
virtual const memory_pd_t *output_pd(int index = 0) const override {
switch (index) {
case 0: return diff_weights_pd(0);
case 1: with_bias() ? diff_weights_pd(1) : nullptr;
case 1: return with_bias() ? diff_weights_pd(1) : nullptr;
default: return nullptr;
}
}
Expand Down