diff --git a/python/paddle/fluid/layers/tensor.py b/python/paddle/fluid/layers/tensor.py index a18e5b6a9c3fe69ee0bcadc150f07b72227df85e..ef90638c721810e618ce4760e83e1a63b86c2325 100644 --- a/python/paddle/fluid/layers/tensor.py +++ b/python/paddle/fluid/layers/tensor.py @@ -13,7 +13,7 @@ # limitations under the License. from __future__ import print_function - +from six.moves import reduce from ..layer_helper import LayerHelper from ..param_attr import ParamAttr from ..framework import convert_np_dtype_to_dtype_