ctx.save_for_backward

"ctx" is a context object that can be used to stash information 
for backward computation. You can cache arbitrary objects for 
use in the backward pass using the "ctx.save_for_backward" method
Bored Coder