Use more than one tempSpace in Backward


#1

Is it possible to use more than one temp space in the Backward of a operator?

And, I’m not sure if it is proper to write it as follows; Also I don’t know how to use it in Backward.
std::vector BackwardResource(
const std::vector &in_shape) const override {
return {ResourceRequest::kTempSpace, ResourceRequest::kTempSpace};
}

I tested it in backward that the ctx.requested Resources have the save id when the BackwardResource return multiple same kTempSpaces.