From 9438db2755ad685026de98b04bd448859ce2cc10 Mon Sep 17 00:00:00 2001 From: xiexionghang Date: Tue, 27 Aug 2019 17:32:54 +0800 Subject: [PATCH] fix code style --- paddle/fluid/train/custom_trainer/feed/scripts/join.py | 9 ++++++++- paddle/fluid/train/custom_trainer/feed/scripts/update.py | 8 +++++++- 2 files changed, 15 insertions(+), 2 deletions(-) diff --git a/paddle/fluid/train/custom_trainer/feed/scripts/join.py b/paddle/fluid/train/custom_trainer/feed/scripts/join.py index d3aeceb4..42279410 100644 --- a/paddle/fluid/train/custom_trainer/feed/scripts/join.py +++ b/paddle/fluid/train/custom_trainer/feed/scripts/join.py @@ -50,7 +50,14 @@ def inference(): { "name": "epoch_auc", "class": "AucMonitor", "target": ctr_output, "compute_interval": 600 }, { "name": "day_auc", "class": "AucMonitor", "target": ctr_output, "compute_interval": 86400 } ] - return {'accessors': accessors, 'monitors': monitors, 'sparses': [sparse_cvm], 'inputs': [cvm_input], 'outputs': [ctr_output]} + + return { + 'accessors': accessors, + 'monitors': monitors, + 'sparses': [sparse_cvm], + 'inputs': [cvm_input], + 'outputs': [ctr_output] + } def loss_function(ctr_output): """ diff --git a/paddle/fluid/train/custom_trainer/feed/scripts/update.py b/paddle/fluid/train/custom_trainer/feed/scripts/update.py index ec77ba16..c89ada5d 100644 --- a/paddle/fluid/train/custom_trainer/feed/scripts/update.py +++ b/paddle/fluid/train/custom_trainer/feed/scripts/update.py @@ -43,7 +43,13 @@ def inference(): { "name": "day_auc", "class": "AucMonitor", "target": ctr_output, "compute_interval": 86400 } ] - return {'accessors': accessors, 'monitors': monitors, 'sparses': [sparse_cvm], 'inputs': [cvm_input], 'outputs': [ctr_output]} + return { + 'accessors': accessors, + 'monitors': monitors, + 'sparses': [sparse_cvm], + 'inputs': [cvm_input], + 'outputs': [ctr_output] + } def loss_function(ctr_output): """ -- GitLab