You might need to update PyTorch to be able to use this method.
@tom mentioned the PR where the minimum and `maximum methods were merged and since it’s ~1 year old, I assume you are also using an older PyTorch release.