Skip to content

Commit

Permalink
fix: specify the int supported type for one_hot in tf frontend (#28699)
Browse files Browse the repository at this point in the history
  • Loading branch information
ZJay07 committed Apr 2, 2024
1 parent 6a34ee1 commit 619cce9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions ivy/functional/frontends/tensorflow/general_functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -306,6 +306,9 @@ def norm(tensor, ord="euclidean", axis=None, keepdims=None, name=None):
)


@with_supported_dtypes(
{"2.15.0 and below": ("uint8", "int8", "int32", "int64")}, "tensorflow"
)
@to_ivy_arrays_and_back
def one_hot(
indices: ivy.Array,
Expand Down

0 comments on commit 619cce9

Please sign in to comment.