(1) and (2) are equivalent
a = b / c and a = torch.div(b, c) are also equivalent. Here’s how it is hooked up in the source code: https://github.com/pytorch/pytorch/blob/master/tools/autograd/templates/python_variable_methods.cpp#L640 425