当前位置: 首页>>代码示例>>Python>>正文


Python multi_worker_test_base.create_in_process_cluster函数代码示例

本文整理汇总了Python中tensorflow.contrib.distribute.python.multi_worker_test_base.create_in_process_cluster函数的典型用法代码示例。如果您正苦于以下问题:Python create_in_process_cluster函数的具体用法?Python create_in_process_cluster怎么用?Python create_in_process_cluster使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了create_in_process_cluster函数的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。

示例1: setUpClass

 def setUpClass(cls):
   cls._workers, cls._ps = multi_worker_test_base.create_in_process_cluster(
       num_workers=3, num_ps=2)
   cls._cluster_spec = {
       run_config.TaskType.WORKER: [
           'fake_worker_0', 'fake_worker_1', 'fake_worker_2'
       ],
       run_config.TaskType.PS: ['fake_ps_0', 'fake_ps_1']
   }
开发者ID:sonnyhu,项目名称:tensorflow,代码行数:9,代码来源:parameter_server_strategy_test.py

示例2: setUpClass

 def setUpClass(cls):
   """Create a local cluster with 2 workers."""
   cls._workers, cls._ps = multi_worker_test_base.create_in_process_cluster(
       num_workers=3, num_ps=0)
   cls._cluster_spec = {
       run_config.TaskType.WORKER: [
           "fake_worker_0", "fake_worker_1", "fake_worker_2"
       ]
   }
开发者ID:ZhangXinNan,项目名称:tensorflow,代码行数:9,代码来源:cross_tower_ops_test.py

示例3: setUpClass

 def setUpClass(cls):
   cls._cluster_spec = multi_worker_test_base.create_in_process_cluster(
       num_workers=3, num_ps=2, has_chief=True)
   cls._default_target = 'grpc://' + cls._cluster_spec[CHIEF][0]
开发者ID:AnishShah,项目名称:tensorflow,代码行数:4,代码来源:parameter_server_strategy_test.py

示例4: setUpClass

 def setUpClass(cls):
   """Create a local cluster with 3 workers and 1 chief."""
   cls._cluster_spec = multi_worker_test_base.create_in_process_cluster(
       num_workers=3, num_ps=0, has_chief=True)
开发者ID:zhaoyongke,项目名称:tensorflow,代码行数:4,代码来源:collective_all_reduce_strategy_test.py

示例5: setUpClass

 def setUpClass(cls):
   """Create a local cluster with 2 workers."""
   super(DistributeCoordinatorIntegrationTest, cls).setUpClass()
   cls._cluster_spec = multi_worker_test_base.create_in_process_cluster(
       num_workers=3, num_ps=2, has_eval=True)
开发者ID:kylin9872,项目名称:tensorflow,代码行数:5,代码来源:estimator_training_test.py

示例6: setUpClass

 def setUpClass(cls):
   """Create a local cluster with 2 workers."""
   cls._cluster_spec = multi_worker_test_base.create_in_process_cluster(
       num_workers=3, num_ps=0)
开发者ID:zhaoyongke,项目名称:tensorflow,代码行数:4,代码来源:cross_device_ops_test.py

示例7: setUpClass

 def setUpClass(cls):
   """Create a local cluster with 2 workers and 1 chief."""
   cls._cluster_spec = multi_worker_test_base.create_in_process_cluster(
       num_workers=2, num_ps=0, has_chief=True)
   cls._default_target = "grpc://" + cls._cluster_spec["chief"][0]
开发者ID:mrlittlepig,项目名称:tensorflow,代码行数:5,代码来源:mirrored_strategy_multigpu_test.py

示例8: setUpClass

 def setUpClass(cls):
   """Create a local cluster with 2 workers."""
   super(KerasMultiWorkerTestStandaloneClient, cls).setUpClass()
   cls._cluster_spec = test_base.create_in_process_cluster(
       num_workers=2, num_ps=1, has_eval=False)
开发者ID:VonChenPlus,项目名称:tensorflow,代码行数:5,代码来源:keras_multi_worker_test.py


注:本文中的tensorflow.contrib.distribute.python.multi_worker_test_base.create_in_process_cluster函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。