Skip to content

Commit

Permalink
fix: specify supported types for softplus in tensorflow frontend (#28466
Browse files Browse the repository at this point in the history
)
  • Loading branch information
ZJay07 committed Mar 26, 2024
1 parent 56a06fd commit 9d65596
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions ivy/functional/backends/paddle/activations.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,8 +117,18 @@ def softmax(
return paddle.divide(exp_x, paddle.sum(exp_x, axis=axis, keepdim=True))


@with_unsupported_device_and_dtypes(
{"2.6.0 and below": {"cpu": ("float16", "bfloat16")}}, backend_version
@with_supported_dtypes(
{
"2.6.0 and below": (
"int32",
"int64",
"float64",
"complex128",
"float32",
"complex64",
)
},
backend_version,
)
def softplus(
x: paddle.Tensor,
Expand Down

0 comments on commit 9d65596

Please sign in to comment.