root@muxi-Rack-Server:/workspace# python -V
python -c "import torch, torchvision; print('torch', torch.version); print('torch cuda', torch.version.cuda); print('torchvision', torchvision.version)"
python -c "import torch; import torch.nn.attention; print('torch.nn.attention ok')"
python -c "from torchvision.transforms import v2; import inspect; print(inspect.signature(v2.ToDtype)); print(hasattr(v2.functional, 'to_image'))"
Python 3.10.10
torch 2.6.0+metax3.2.1.3
torch cuda 11.6
torchvision 0.15.1+metax3.2.1.3
torch.nn.attention ok
/opt/conda/lib/python3.10/site-packages/torchvision/datapoints/init.py:12: UserWarning: The torchvision.datapoints and torchvision.transforms.v2 namespaces are still Beta. While we do not expect major breaking changes, some APIs may still change according to user feedback. Please submit any feedback you may have in this issue: github.com/pytorch/vision/issues/6753, and you can also check out github.com/pytorch/vision/issues/7319 to learn more about the APIs that we suspect might involve future changes. You can silence this warning by calling torchvision.disable_beta_transforms_warning().
warnings.warn(_BETA_TRANSFORMS_WARNING)
/opt/conda/lib/python3.10/site-packages/torchvision/transforms/v2/init.py:54: UserWarning: The torchvision.datapoints and torchvision.transforms.v2 namespaces are still Beta. While we do not expect major breaking changes, some APIs may still change according to user feedback. Please submit any feedback you may have in this issue: github.com/pytorch/vision/issues/6753, and you can also check out github.com/pytorch/vision/issues/7319 to learn more about the APIs that we suspect might involve future changes. You can silence this warning by calling torchvision.disable_beta_transforms_warning().
warnings.warn(_BETA_TRANSFORMS_WARNING)
(dtype: Union[torch.dtype, Dict[Type, Optional[torch.dtype]]]) -> None
False