Utilities for working and converting PyTorch objects.