Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,10 @@ def dyfunc_tensor_shape_1(x):


def dyfunc_tensor_shape_2(x):
x = fluid.dygraph.to_variable(x)
x = paddle.to_tensor(x)
shape = x.shape
shape2 = shape
res = fluid.layers.reshape(x, shape2)
res = paddle.reshape(x, shape2)
return res


Expand Down Expand Up @@ -190,7 +190,7 @@ def dyfunc_with_while_3(x):


def dyfunc_with_while_4(x):
x = fluid.dygraph.to_variable(x)
x = paddle.to_tensor(x)
y = numpy.ones(5)
y_shape_0 = y.shape[0]
i = 1
Expand Down