Delete inverse out (#25925)

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

* delete out in inverse
revert-24895-update_cub
WuHaobo 5 years ago committed by GitHub
parent 253fd407e8
commit f0b8871741
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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")

Loading…
Cancel
Save