Open nikitaved opened 1 week ago
saved_tensors is implemented to store only tensors and nothing else is allowed by torch.autograd.Function's ctx.save_for_backward method.
_Originally posted by @IvanYashchuk in https://github.com/Lightning-AI/lightning-thunder/pull/607#discussion_r1643082936_
As per title. https://github.com/Lightning-AI/lightning-thunder/pull/616 shows that this assumption is not true, and fails in our notebooks.
_Originally posted by @IvanYashchuk in https://github.com/Lightning-AI/lightning-thunder/pull/607#discussion_r1643082936_
As per title. https://github.com/Lightning-AI/lightning-thunder/pull/616 shows that this assumption is not true, and fails in our notebooks.