Thanks for the update! If you detach one of the output tensors, you won’t be able to call backward() on it and its computation graph won’t be used to calculate the gradients.
In case you are using both tensors to calculate the loss, this could be a valid option. Alternatively, you could also use one of the output tensors to calculate the loss and call backward on it.