Skip to content

Commit

Permalink
Fix Paddle version keys gap for supported dtypes (#21428)
Browse files Browse the repository at this point in the history
  • Loading branch information
kgmann authored Aug 15, 2023
1 parent ab7cfc4 commit 8f37828
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions ivy/functional/backends/paddle/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@

# update these to add new dtypes
valid_dtypes = {
"2.4.2 and below": (
"2.4.0 and below": (
ivy.int8,
ivy.int16,
ivy.int32,
Expand All @@ -66,7 +66,7 @@
ivy.complex128,
ivy.bool,
),
"2.5.1 and above": (
"2.4.1 and above": (
ivy.int8,
ivy.int16,
ivy.int32,
Expand All @@ -82,7 +82,7 @@
),
}
valid_numeric_dtypes = {
"2.4.2 and below": (
"2.4.0 and below": (
ivy.int8,
ivy.int16,
ivy.int32,
Expand All @@ -95,7 +95,7 @@
ivy.complex128,
ivy.bool,
),
"2.5.1 and above": (
"2.4.1 and above": (
ivy.int8,
ivy.int16,
ivy.int32,
Expand All @@ -120,8 +120,8 @@
)
}
valid_float_dtypes = {
"2.4.2 and below": (ivy.float16, ivy.float32, ivy.float64),
"2.5.1 and above": (ivy.bfloat16, ivy.float16, ivy.float32, ivy.float64),
"2.4.0 and below": (ivy.float16, ivy.float32, ivy.float64),
"2.4.1 and above": (ivy.bfloat16, ivy.float16, ivy.float32, ivy.float64),
}
valid_uint_dtypes = {"2.5.1 and below": (ivy.uint8,)}
valid_complex_dtypes = {"2.5.1 and below": (ivy.complex64, ivy.complex128)}
Expand All @@ -137,35 +137,35 @@

# update these to add new dtypes
invalid_dtypes = {
"2.4.2 and below": (
"2.4.0 and below": (
ivy.uint16,
ivy.uint32,
ivy.uint64,
ivy.bfloat16,
),
"2.5.1 and above": (
"2.4.1 and above": (
ivy.uint16,
ivy.uint32,
ivy.uint64,
),
}

invalid_numeric_dtypes = {
"2.4.2 and below": (
"2.4.0 and below": (
ivy.uint16,
ivy.uint32,
ivy.uint64,
ivy.bfloat16,
),
"2.5.1 and above": (
"2.4.1 and above": (
ivy.uint16,
ivy.uint32,
ivy.uint64,
),
}

invalid_int_dtypes = {"2.5.1 and below": (ivy.uint16, ivy.uint32, ivy.uint64)}
invalid_float_dtypes = {"2.4.2 and below": (ivy.bfloat16,), "2.5.1 and above": ()}
invalid_float_dtypes = {"2.4.0 and below": (ivy.bfloat16,), "2.4.1 and above": ()}
invalid_uint_dtypes = {"2.5.1 and below": (ivy.uint16, ivy.uint32, ivy.uint64)}
invalid_complex_dtypes = {"2.5.1 and below": ()}

Expand Down

0 comments on commit 8f37828

Please sign in to comment.