MCPcopy Create free account
hub / github.com/PaddlePaddle/Paddle / _copy_dist_param_info_from

Method _copy_dist_param_info_from

python/paddle/base/framework.py:7363–7382  ·  view source on GitHub ↗

Copy the information of distributed information from other program. Args: other(Program): Other program Returns: None

(self, other)

Source from the content-addressed store, hash-verified

7361 self.global_block()._copy_param_info_from(other.global_block())
7362
7363 def _copy_dist_param_info_from(self, other):
7364 """
7365 Copy the information of distributed information from other program.
7366
7367 Args:
7368 other(Program): Other program
7369
7370 Returns:
7371 None
7372 """
7373 if not isinstance(other, Program):
7374 raise TypeError(
7375 f"Function Program._copy_param_info_from() needs to pass in a source Program, but received {type(other)}"
7376 )
7377 self._is_distributed = other._is_distributed
7378 self._is_chief = other._is_chief
7379 self._parameters_on_pservers = other._parameters_on_pservers
7380 self._endpoints = other._endpoints
7381 self._ps_endpoint = other._ps_endpoint
7382 self._distributed_lookup_table = other._distributed_lookup_table
7383
7384 def _copy_data_info_from(self, other, pruned_origin_block_id_map=None):
7385 """

Calls 2

TypeErrorClass · 0.85
typeFunction · 0.50

Tested by

no test coverage detected