diff --git a/python/paddle/fluid/layers/nn.py b/python/paddle/fluid/layers/nn.py index c9e9dfd3c8ec838eee84f1fab4d3cd0b5e985a5e..7ccb34c24a0b340afb3c15e1c136d46b14996a9c 100644 --- a/python/paddle/fluid/layers/nn.py +++ b/python/paddle/fluid/layers/nn.py @@ -7146,7 +7146,8 @@ def image_resize(input, inputs['OutSize'] = out_shape else: if not (_is_list_or_turple_(out_shape)): - raise TypeError("out_shape should be a list or tuple or Variable.") + raise TypeError( + "out_shape should be a list or tuple or Variable.") if len(out_shape) != 2: raise ValueError("out_shape length should be 2.")