diff --git a/python/paddle/vision/datasets/cifar.py b/python/paddle/vision/datasets/cifar.py index 7a766828d84d0c9f95a60db99f70dd9c71d0274e..25bec2daf5993eb2f01224226db788e961f9a52e 100644 --- a/python/paddle/vision/datasets/cifar.py +++ b/python/paddle/vision/datasets/cifar.py @@ -80,7 +80,6 @@ class Cifar10(Dataset): image = paddle.reshape(image, (1, -1)) return self.fc(image), label - paddle.disable_static() normalize = Normalize(mean=[0.5, 0.5, 0.5], std=[0.5, 0.5, 0.5], @@ -214,7 +213,6 @@ class Cifar100(Cifar10): image = paddle.reshape(image, (1, -1)) return self.fc(image), label - paddle.disable_static() normalize = Normalize(mean=[0.5, 0.5, 0.5], std=[0.5, 0.5, 0.5], diff --git a/python/paddle/vision/datasets/voc2012.py b/python/paddle/vision/datasets/voc2012.py index 33a3b4e19487dd8042bc8ab5281b162ee5d4f50e..f846728f802d2626e1c2ae70ea2e3df788badd36 100644 --- a/python/paddle/vision/datasets/voc2012.py +++ b/python/paddle/vision/datasets/voc2012.py @@ -68,7 +68,6 @@ class VOC2012(Dataset): def forward(self, image, label): return paddle.sum(image), label - paddle.disable_static() normalize = Normalize(mean=[0.5, 0.5, 0.5], std=[0.5, 0.5, 0.5],