📜  torchvision.transforms 展平 - Python 代码示例

📅  最后修改于: 2022-03-11 14:46:12             🧑  作者: Mango

代码示例1
import torchvision.transforms as T
transform=T.Compose([T.ToTensor(), T.Lambda(lambda x: torch.flatten(x))])