torch.Tensor.register\_hook =========================== .. currentmodule:: torch .. automethod:: Tensor.register_hook