Skip to content

Commit

Permalink
fix according to comments
Browse files Browse the repository at this point in the history
  • Loading branch information
helinwang committed Aug 14, 2017
1 parent 8be1daf commit 1d5420f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions demo/label_semantic_roles/train_ft.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
import paddle.v2.evaluator as evaluator
from paddle.v2.reader.creator import cloud_reader

master_ip = os.getenv("MASTER_IP")
etcd_endpoint = "http://" + master_ip + ":" + "2379"
etcd_ip = os.getenv("ETCD_IP")
etcd_endpoint = "http://" + etcd_ip + ":" + "2379"

word_dict, verb_dict, label_dict = conll05.get_dict()
word_dict_len = len(word_dict)
Expand Down
4 changes: 2 additions & 2 deletions demo/machine_translation/train_ft.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
import paddle.v2 as paddle
from paddle.v2.reader.creator import cloud_reader

master_ip = os.getenv("MASTER_IP")
etcd_endpoint = "http://" + master_ip + ":" + "2379"
etcd_ip = os.getenv("ETCD_IP")
etcd_endpoint = "http://" + etcd_ip + ":" + "2379"

def save_model(parameters, save_path):
with open(save_path, 'w') as f:
Expand Down

0 comments on commit 1d5420f

Please sign in to comment.