GradCache icon indicating copy to clipboard operation
GradCache copied to clipboard

Multiple outputs implementation

Open Soumya-dutta opened this issue 2 years ago • 1 comments

Hello,

Suppose my model returns multiple outputs. How should the functional approach be modified to handle this?

Thanks.

Soumya-dutta avatar Dec 26 '23 17:12 Soumya-dutta

With the grad cache decorator, you can return a tuple of tensors.

luyug avatar Dec 27 '23 05:12 luyug