Make compatible with older PyTorch versions
Make compatible with older PyTorch versions: a task in life-science-SWE1.0 (Harbor dataset). Title: Make compatible with older PyTorch versions
The task
**Title:** Make compatible with older PyTorch versions
Part of scalingX/life-science-SWE1.0.