提交 355ecaf3 编写于 作者: T typhoonzero

fix style check

上级 d6edfd0c
...@@ -170,10 +170,11 @@ def main(): ...@@ -170,10 +170,11 @@ def main():
y_data = np.array(map(lambda x: x[1], data)).astype("int64") y_data = np.array(map(lambda x: x[1], data)).astype("int64")
y_data = y_data.reshape([-1, 1]) y_data = y_data.reshape([-1, 1])
loss, acc = exe.run(trainer_prog, loss, acc = exe.run(
feed={"pixel": img_data, trainer_prog,
"label": y_data}, feed={"pixel": img_data,
fetch_list=[avg_cost] + accuracy.metrics) "label": y_data},
fetch_list=[avg_cost] + accuracy.metrics)
iters += 1 iters += 1
num_samples += len(data) num_samples += len(data)
print( print(
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册