Skip to content

Commit

Permalink
bug fix, test=develop
Browse files Browse the repository at this point in the history
  • Loading branch information
sandyhouse committed May 6, 2021
1 parent 70eb435 commit 40ce0a1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion python/paddle/distributed/fleet/base/topology.py
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ def __init__(self, topology):
debug_str = "HybridParallelInfo: rank_id: %d, dp_degree: %d, " \
"mp_degree: %d, pp_degree: %d" % (self.global_rank, self._dp_degree,
self._mp_degree,self._pp_degree)
debug_str += "dp_group: %s, mp_group: %s, pp_group: %s, check/clip group: %s" % (
debug_str += ", dp_group: %s, mp_group: %s, pp_group: %s, check/clip group: %s" % (
self._dp_group, self._mp_group, self._pp_group, self._check_group)
logger.info(debug_str)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -136,9 +136,9 @@ def _forward(self, cache_id):
self._recv_activations(cache_id)

if isinstance(self.caches['inputs'][cache_id], tuple):
inputs = tuple(t.clone() for t in self.caches['inputs'][cache_id])
inputs = tuple(t for t in self.caches['inputs'][cache_id])
else:
inputs = self.caches['inputs'][cache_id].clone()
inputs = self.caches['inputs'][cache_id]

self._clear_grads(inputs)
outputs = self._layers.forward(inputs)
Expand Down

0 comments on commit 40ce0a1

Please sign in to comment.