Skip to content

Commit

Permalink
fix code. test=develop
Browse files Browse the repository at this point in the history
Change-Id: Ia9ce2b225e04171e9bf248f4965d28e760f785bf
  • Loading branch information
liym27 committed Aug 18, 2020
1 parent e52cb39 commit 3799723
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion python/paddle/fluid/tests/unittests/test_reshape_op.py
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,7 @@ def test_imperative(self):
self._set_paddle_api()
input = np.random.random([2, 25]).astype("float32")
shape = [2, 5, 5]
with paddle.imperative.guard():
with fluid.dygraph.guard():
x = self.to_tensor(input)
positive_five = self.fill_constant([1], "int32", 5)

Expand Down
2 changes: 1 addition & 1 deletion python/paddle/tensor/manipulation.py
Original file line number Diff line number Diff line change
Expand Up @@ -376,7 +376,7 @@ def roll(x, shifts, axis=None, name=None):
outputs={'Out': out},
attrs={'axis': axis,
'shifts': shifts})
out = reshape(out, shape=origin_shape, inplace=True)
out = layers.reshape(out, shape=origin_shape, inplace=True)
return out


Expand Down

0 comments on commit 3799723

Please sign in to comment.