Skip to content

Commit

Permalink
Update paddle frontend testing config to support scalars.
Browse files Browse the repository at this point in the history
  • Loading branch information
CatB1t committed Jul 28, 2023
1 parent f621a7b commit fabadb6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ivy_tests/test_ivy/test_frontends/config/paddle.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import paddle
import numpy as np

valid_devices = ("cpu", "gpu")
invalid_devices = ("tpu",)
Expand Down Expand Up @@ -97,7 +98,7 @@ def is_native_array(x):


def to_numpy(x):
return x.numpy()
return np.array(x)


def as_native_dtype(dtype: str):
Expand Down

0 comments on commit fabadb6

Please sign in to comment.