diff --git a/python/paddle/tensor/linalg.py b/python/paddle/tensor/linalg.py index 4ac0082f1150d60120e6f8280ca958bd9ec89cca..86ea2307ed4d6d340f4204b0d14631a1dcf71869 100644 --- a/python/paddle/tensor/linalg.py +++ b/python/paddle/tensor/linalg.py @@ -831,10 +831,10 @@ def cond(x, p=None, name=None): keepdim = False if in_dygraph_mode(): - pow_out = _legacy_C_ops.pow(input, 'factor', porder) + pow_out = _C_ops.pow(input, porder) sum_out_1 = _C_ops.sum(pow_out, axis, None, keepdim) sum_out_2 = _C_ops.sum(sum_out_1, axis, None, keepdim) - return _legacy_C_ops.pow(sum_out_2, 'factor', float(1. / porder)) + return _C_ops.pow(sum_out_2, float(1. / porder)) elif paddle.in_dynamic_mode(): pow_out = _legacy_C_ops.pow(input, 'factor', porder) sum_out_1 = _legacy_C_ops.reduce_sum(pow_out, 'dim', axis,