提交 d4e91159 编写于 作者: D dengkaipeng

fix comment

上级 c6e8d910
...@@ -1125,13 +1125,11 @@ class Model(fluid.dygraph.Layer): ...@@ -1125,13 +1125,11 @@ class Model(fluid.dygraph.Layer):
outputs = [] outputs = []
for data in tqdm.tqdm(loader): for data in tqdm.tqdm(loader):
data = flatten(data) data = flatten(data)
# if not fluid.in_dygraph_mode():
# data = data[0]
outputs.append(self.test(data[:len(self._inputs)])) outputs.append(self.test(data[:len(self._inputs)]))
# NOTE: we do not stack or concanate here for output lod tensor # NOTE: we do not stack or concanate here for output
# may loss its detail info # lod tensor may loss its detail info, just pack sample
# sample list data to batch data # list data to batch data
outputs = list(zip(*outputs)) outputs = list(zip(*outputs))
self._test_dataloader = None self._test_dataloader = None
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册