diff --git a/python/paddle/fluid/tests/book/notest_understand_sentiment.py b/python/paddle/fluid/tests/book/notest_understand_sentiment.py index 75b8be1cc3551e3165b975cafd62156a2c751f3a..f8e49fafac4d91bcde8df3aa33e185c9455b0c66 100644 --- a/python/paddle/fluid/tests/book/notest_understand_sentiment.py +++ b/python/paddle/fluid/tests/book/notest_understand_sentiment.py @@ -12,7 +12,6 @@ # See the License for the specific language governing permissions and # limitations under the License. -from paddle.fluid.layers.device import get_places import unittest import paddle.fluid as fluid import paddle diff --git a/python/paddle/fluid/tests/book/test_image_classification.py b/python/paddle/fluid/tests/book/test_image_classification.py index e352a67352c49b6dd6b22b94f16fb81b8ab8c2da..c8a4861370a65fd4f689d2f19a9e245a1e9d9d60 100644 --- a/python/paddle/fluid/tests/book/test_image_classification.py +++ b/python/paddle/fluid/tests/book/test_image_classification.py @@ -21,7 +21,6 @@ import numpy import unittest import os import tempfile -import numpy as np paddle.enable_static() diff --git a/python/paddle/fluid/tests/book/test_label_semantic_roles.py b/python/paddle/fluid/tests/book/test_label_semantic_roles.py index 118c0be4b0ddbb806dca83e6a525d3964d8e82cb..16e4a2827779d14562dea9829d806cc3787c586a 100644 --- a/python/paddle/fluid/tests/book/test_label_semantic_roles.py +++ b/python/paddle/fluid/tests/book/test_label_semantic_roles.py @@ -13,7 +13,6 @@ # limitations under the License. import contextlib -import math import numpy as np import os import time diff --git a/python/paddle/fluid/tests/book/test_recognize_digits.py b/python/paddle/fluid/tests/book/test_recognize_digits.py index 7980db4649a043c8cc02ac163627fa172bfe3c10..f2afcdefa0626b7e2d1da451adc57031a8e31afd 100644 --- a/python/paddle/fluid/tests/book/test_recognize_digits.py +++ b/python/paddle/fluid/tests/book/test_recognize_digits.py @@ -22,7 +22,6 @@ import numpy import paddle import paddle.fluid as fluid -from paddle.fluid.layers.device import get_places paddle.enable_static() diff --git a/python/paddle/fluid/tests/book/test_rnn_encoder_decoder.py b/python/paddle/fluid/tests/book/test_rnn_encoder_decoder.py index 18972a378a52b5f506913a26867151e49d137d7c..b7de6f5da90cf0c16cbb28d790b73a022a4a378f 100644 --- a/python/paddle/fluid/tests/book/test_rnn_encoder_decoder.py +++ b/python/paddle/fluid/tests/book/test_rnn_encoder_decoder.py @@ -15,9 +15,7 @@ import numpy as np import paddle import paddle.fluid as fluid -import paddle.fluid.core as core import paddle.fluid.framework as framework -import paddle.fluid.layers as layers import contextlib import math import sys diff --git a/python/paddle/fluid/tests/book/test_word2vec_book.py b/python/paddle/fluid/tests/book/test_word2vec_book.py index 194dfd8dae4496393b06e546f1b2b116e81fc3be..ec7ab9cc8370955acc0f9b287c0a50669d5681cd 100644 --- a/python/paddle/fluid/tests/book/test_word2vec_book.py +++ b/python/paddle/fluid/tests/book/test_word2vec_book.py @@ -14,7 +14,6 @@ import paddle import paddle.fluid as fluid -from paddle.fluid.layers.device import get_places import unittest import os import numpy as np diff --git a/python/paddle/fluid/tests/test_beam_search_decoder.py b/python/paddle/fluid/tests/test_beam_search_decoder.py index c57cddedb4e93b38b63050b2bc8f05c2fc0ffba3..7458bf4c57c21fb4e71b8f43699c078755a6cc10 100644 --- a/python/paddle/fluid/tests/test_beam_search_decoder.py +++ b/python/paddle/fluid/tests/test_beam_search_decoder.py @@ -19,13 +19,11 @@ import contextlib import numpy as np import paddle import paddle.fluid as fluid -import paddle.fluid.core as core import paddle.fluid.framework as framework import paddle.fluid.layers as layers from paddle.fluid.executor import Executor from paddle.fluid.contrib.decoder.beam_search_decoder import * import unittest -import os paddle.enable_static() diff --git a/python/paddle/fluid/tests/test_error_clip.py b/python/paddle/fluid/tests/test_error_clip.py index 99dd1964230b93848262c0b722b29dabcb846b68..eac41b818c2622a12a7baf9511a34279f23157dc 100644 --- a/python/paddle/fluid/tests/test_error_clip.py +++ b/python/paddle/fluid/tests/test_error_clip.py @@ -12,7 +12,6 @@ # See the License for the specific language governing permissions and # limitations under the License. -import numpy as np import paddle import paddle.fluid as fluid