提交 29c77266 编写于 作者: D dongdaxiang

refine import path for ps_instance.py

test=develop
上级 8a6b53a4
...@@ -11,8 +11,7 @@ ...@@ -11,8 +11,7 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and # See the License for the specific language governing permissions and
import helper as dist_helper from .helper import MPIHelper
import sys
class PaddlePSInstance(object): class PaddlePSInstance(object):
...@@ -26,7 +25,7 @@ class PaddlePSInstance(object): ...@@ -26,7 +25,7 @@ class PaddlePSInstance(object):
""" """
def __init__(self, server_worker_mode, proc_per_node): def __init__(self, server_worker_mode, proc_per_node):
self.dh = dist_helper.MPIHelper() self.dh = MPIHelper()
self._rankid = self.dh.get_rank() self._rankid = self.dh.get_rank()
self._server_worker_mode = server_worker_mode self._server_worker_mode = server_worker_mode
self._proc_per_node = proc_per_node self._proc_per_node = proc_per_node
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册