Skip to content

Commit

Permalink
fix: add unsupported dtypes to some tf backend fns (#28504)
Browse files Browse the repository at this point in the history
  • Loading branch information
Sam-Armstrong committed Mar 7, 2024
1 parent da79905 commit a520419
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
3 changes: 3 additions & 0 deletions ivy/functional/backends/tensorflow/elementwise.py
Original file line number Diff line number Diff line change
Expand Up @@ -706,6 +706,7 @@ def sinh(
return tf.sinh(x)


@with_unsupported_dtypes({"2.15.0 and below": ("integer",)}, backend_version)
def sqrt(
x: Union[tf.Tensor, tf.Variable],
/,
Expand Down Expand Up @@ -740,6 +741,7 @@ def subtract(
return tf.subtract(x1, x2)


@with_unsupported_dtypes({"2.15.0 and below": ("integer",)}, backend_version)
def tan(
x: Union[tf.Tensor, tf.Variable],
/,
Expand All @@ -749,6 +751,7 @@ def tan(
return tf.tan(x)


@with_unsupported_dtypes({"2.15.0 and below": ("integer",)}, backend_version)
def tanh(
x: Union[tf.Tensor, tf.Variable],
/,
Expand Down
4 changes: 3 additions & 1 deletion ivy/functional/backends/tensorflow/layers.py
Original file line number Diff line number Diff line change
Expand Up @@ -410,7 +410,9 @@ def conv3d_transpose(
return res


@with_unsupported_dtypes({"2.15.0 and below": ("bfloat16", "complex")}, backend_version)
@with_unsupported_dtypes(
{"2.15.0 and below": ("bfloat16", "complex", "integer")}, backend_version
)
def conv_general_dilated(
x: Union[tf.Tensor, tf.Variable],
filters: Union[tf.Tensor, tf.Variable],
Expand Down

0 comments on commit a520419

Please sign in to comment.