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

fix for number of inputs/outputs for backward custom ops #17069

Merged
merged 2 commits into from
Dec 14, 2019
Merged
Changes from all commits
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
2 changes: 1 addition & 1 deletion src/c_api/c_api.cc
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,7 @@ int MXLoadLib(const char *path) {
&num_in, &num_out))
<< "Error calling ParseAttrs::num_outputs for custom operator '" << name_str << "'";

return num_in + num_out;
return num_in + 2*num_out;
};

// lambda function to call infer shape
Expand Down