Skip to content

Commit

Permalink
Merge pull request ivy-llc#10447 from clsandoval/torch.tensor.reshape…
Browse files Browse the repository at this point in the history
….test.fix

add fix for torch tensor reshape tests
  • Loading branch information
suvadityamuk authored Feb 14, 2023
2 parents be31bd7 + 1d842bd commit 878a3a8
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions ivy_tests/test_ivy/test_frontends/test_torch/test_tensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -387,17 +387,15 @@ def test_torch_instance_reshape(
frontend,
):
input_dtype, x = dtype_x
shape = {
"shape": shape,
}
if unpack_shape:
method_flags.num_positional_args = len(shape) + 1
shape = {}
method_flags.num_positional_args = len(shape["shape"]) + 1
i = 0
for x_ in shape:
for x_ in shape["shape"]:
shape["x{}".format(i)] = x_
i += 1
else:
shape = {
"shape": shape,
}
helpers.test_frontend_method(
init_input_dtypes=input_dtype,
init_all_as_kwargs_np={
Expand Down

0 comments on commit 878a3a8

Please sign in to comment.