Question 1: Select all that apply
mediumAI-checkedPyTorchA custom autograd function implements tanh:
class TanhFunction(torch.autograd.Function):
@staticmethod
def forward(ctx, x):
ctx.save_for_backward(x)
return x.tanh()
@staticmethod
def backward(ctx, grad_output):
x, = ctx.saved_tensors
return ...
Which expressions are correct return values for backward? Select all that apply.