Backward through topk operation on Variable

I believe ‘topk’ is differentiable and ‘indices’ is not (in the autograd graph sense).

Digging in autograd code I found the following line related to class Topk(_MultiSelectionFunction):

Perhaps, @apaszke or any one familiar with autograd code, could clarify and confirm. Is there some documentation on this ?

1 Like