未验证 提交 f0b88717 编写于 作者: W WuHaobo 提交者: GitHub

Delete inverse out (#25925)

* test=develop,test=document_fix, remove the out args

* delete out in inverse
上级 253fd407
......@@ -142,14 +142,10 @@ class TestInverseSingularAPI(unittest.TestCase):
if core.is_compiled_with_cuda():
self.places.append(fluid.CUDAPlace(0))
def check_static_result(self, place, with_out=False):
def check_static_result(self, place):
with fluid.program_guard(fluid.Program(), fluid.Program()):
input = fluid.data(name="input", shape=[4, 4], dtype="float64")
if with_out:
out = fluid.data(name="output", shape=[4, 4], dtype="float64")
else:
out = None
result = paddle.inverse(input=input, out=out)
result = paddle.inverse(input=input)
input_np = np.zeros([4, 4]).astype("float64")
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册