Skip to content

Commit

Permalink
fix: fixed the versioning intervals for paddle backend
Browse files Browse the repository at this point in the history
  • Loading branch information
MahmoudAshraf97 committed Nov 4, 2023
1 parent 3458152 commit 8b0032b
Showing 1 changed file with 11 additions and 18 deletions.
29 changes: 11 additions & 18 deletions ivy/functional/backends/paddle/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ def rep_method(*args, **kwargs):

# update these to add new dtypes
valid_dtypes = {
"2.4.0 and below": (
"2.4.2 and below": (
ivy.int8,
ivy.int16,
ivy.int32,
Expand All @@ -130,7 +130,7 @@ def rep_method(*args, **kwargs):
ivy.complex128,
ivy.bool,
),
"2.4.1 and above": (
"2.5.0 and above": (
ivy.int8,
ivy.int16,
ivy.int32,
Expand All @@ -146,7 +146,7 @@ def rep_method(*args, **kwargs):
),
}
valid_numeric_dtypes = {
"2.4.0 and below": (
"2.4.2 and below": (
ivy.int8,
ivy.int16,
ivy.int32,
Expand All @@ -159,7 +159,7 @@ def rep_method(*args, **kwargs):
ivy.complex128,
ivy.bool,
),
"2.4.1 and above": (
"2.5.0 and above": (
ivy.int8,
ivy.int16,
ivy.int32,
Expand All @@ -182,17 +182,10 @@ def rep_method(*args, **kwargs):
ivy.int64,
ivy.uint8,
),
"2.5.2 and above": (
ivy.int8,
ivy.int16,
ivy.int32,
ivy.int64,
ivy.uint8,
),
}
valid_float_dtypes = {
"2.4.0 and below": (ivy.float16, ivy.float32, ivy.float64),
"2.4.1 and above": (ivy.bfloat16, ivy.float16, ivy.float32, ivy.float64),
"2.4.2 and below": (ivy.float16, ivy.float32, ivy.float64),
"2.5.0 and above": (ivy.bfloat16, ivy.float16, ivy.float32, ivy.float64),
}
valid_uint_dtypes = {"2.5.2 and below": (ivy.uint8,)}
valid_complex_dtypes = {"2.5.2 and below": (ivy.complex64, ivy.complex128)}
Expand All @@ -208,35 +201,35 @@ def rep_method(*args, **kwargs):

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

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

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

Expand Down

0 comments on commit 8b0032b

Please sign in to comment.