Skip to content

Commit 967830b

Browse files
committed
Fix
1 parent d914427 commit 967830b

File tree

1 file changed

+1
-9
lines changed
  • python/paddle/distributed/fleet/layers/mpu

1 file changed

+1
-9
lines changed

python/paddle/distributed/fleet/layers/mpu/mp_ops.py

+1-9
Original file line numberDiff line numberDiff line change
@@ -44,15 +44,7 @@ def forward(ctx, tensor, group, skip_c_identity_dynamic):
4444
if skip_c_identity_dynamic:
4545
return tensor
4646
else:
47-
return _legacy_C_ops.c_identity(
48-
tensor,
49-
'use_calc_stream',
50-
True,
51-
'ring_id',
52-
group.id,
53-
'use_model_parallel',
54-
True,
55-
)
47+
return _C_ops.c_identity(tensor, group.id, True, True)
5648

5749
@staticmethod
5850
def backward(ctx, dy):

0 commit comments

Comments
 (0)