This repository was archived by the owner on Nov 17, 2023. It is now read-only.
MXPredReshape
#10502
Replies: 3 comments
-
and missing ret->sym=sym |
Beta Was this translation helpful? Give feedback.
0 replies
-
@eric-haibin-lin Please label it as: Question |
Beta Was this translation helpful? Give feedback.
0 replies
-
@mxnet-label-bot update [question, c api] |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
When I Use MXPredCreate create a GPU handle, then use MXPredReshape to reshape the input shape,
it failure.
This may cause by default context is cpu .
in MXPredReshape ()
.....
// bind line 324
{
std::map<std::string, Context> ctx_map;
std::vector grad_store;
grad_store.reserve(ret->arg_arrays.size());
std::vector grad_req(ret->arg_arrays.size(), kNullOp);
}
So I change MXPredCreatePartialOut()
....
// bind line 234
{
std::map<std::string, Context> ctx_map;
std::vector grad_store(arg_arrays.size());
std::vector grad_req(arg_arrays.size(), kNullOp);
}
Is this correct?
Beta Was this translation helpful? Give feedback.
All reactions