Skip to content

Commit

Permalink
Merge pull request #3 from seemingwang/accessor_merge
Browse files Browse the repository at this point in the history
change prototxt path for testing
  • Loading branch information
zhaocaibei123 authored Aug 25, 2021
2 parents 91c7536 + 18b7612 commit b7b8e7c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions python/paddle/distributed/fleet/runtime/the_one_ps.py
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,7 @@ def __init__(self):
def to_string(self, indent):
if self.id == 1:
proto_txt = ''
with open('/work/git/PaddleRec/models/rank/slot_dnn_test/sparse_table.prototxt') as f:
with open('./sparse_table.prototxt') as f:
proto_txt = f.read()
return proto_txt

Expand Down Expand Up @@ -516,7 +516,7 @@ def sync_strategy_envs():
return kwargs

proto_txt = str(worker) + "\n" + str(server)
with open('./test.prototxt') as f:
with open('./sparse_table.prototxt') as f:
proto_txt = f.read()

debug = bool(int(os.getenv("PSERVER_DEBUG", "0")))
Expand Down Expand Up @@ -779,7 +779,7 @@ def _get_tables():
common.sync = "false"

table.common = common

print('debug zcb build_merge_accessor:')
print(str(ctx))
accessor = _build_merge_accessor(ctx)
Expand Down Expand Up @@ -833,7 +833,7 @@ def _init_server(self, dirname=None, var_names=None, **kwargs):

server = self._get_fleet_proto(is_server=True, is_sync=is_sync)
proto_txt = str(server)
with open('./test.prototxt') as f:
with open('./sparse_table.prototxt') as f:
proto_txt = f.read()

debug = bool(int(os.getenv("PSERVER_DEBUG", "0")))
Expand Down

0 comments on commit b7b8e7c

Please sign in to comment.