From 9c6eb1aa46e5f1704b8aa709d73b2fd20808eff8 Mon Sep 17 00:00:00 2001 From: peizhilin Date: Fri, 29 Mar 2019 16:27:45 +0800 Subject: [PATCH] remove the useless check test=develop --- python/paddle/fluid/framework.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/paddle/fluid/framework.py b/python/paddle/fluid/framework.py index ee247cce841..2c2881dedf2 100644 --- a/python/paddle/fluid/framework.py +++ b/python/paddle/fluid/framework.py @@ -798,7 +798,7 @@ class Variable(object): newitem = self._reconstructSliceinfo(item) or item if fixedSize: check, info = self._detectContinuesSlice(newitem) - if check and fixedSize: + if check: starts = info[0] ends = info[1] axes = [i for i in range(len(starts))] -- GitLab