Forward/BackwardResource in OperatorProperty Interface #13312
Replies: 3 comments
-
|
@mxnet-label-bot [Question, Operator, C++] For questions, please submit them on MXNet discussion forum (https://discuss.mxnet.io), where it will get a wider audience and allow other to learn as well. |
Beta Was this translation helpful? Give feedback.
-
|
@mxnet-label-bot add [Question, Operator, C++] |
Beta Was this translation helpful? Give feedback.
-
|
Removing the C++ keyword as the question is related to custom operators and not the C++ API in cpp-package. @mxnet-label-bot remove [C++] |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
Sorry but I have a question regarding the
OperatorPropertyinterface. Let us take theRNNPropas an example:I noticed we do not declare ahead of time the shape or the size of temporary workspace that we need. It was not until the actual forward/backward propagation when we say:
I have two questions regarding the temporary workspace management:
ForwardResourceandBackwardResourcemethod is equal to the number of temporary workspace tensors I can use in the forward and backward propagation, respectively?ForwardResourceandBackwardResourcereturn a list of shapes that indicate the shapes of the workspace? IMHO this information can be helpful in managing the workspace (allocation/deallocation/reuse) ahead of time.Beta Was this translation helpful? Give feedback.
All reactions