Skip to content

Commit

Permalink
[Embedding] modify UniqueWithExtraCounts name.
Browse files Browse the repository at this point in the history
Signed-off-by: 泊霆 <[email protected]>
  • Loading branch information
Mesilenceki committed Jan 10, 2024
1 parent b75c8d8 commit b7b1a1e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions tensorflow/core/kernels/unique_ali_op.cc
Original file line number Diff line number Diff line change
Expand Up @@ -208,12 +208,12 @@ class UniqueWithCountAliOp : public UniqueAliOp<T, TIndex> {
.TypeConstraint<type>("T") \
.TypeConstraint<int64>("out_idx"), \
UniqueAliOp<type, int64>) \
REGISTER_KERNEL_BUILDER(Name("UniqueWithExtraCounts") \
REGISTER_KERNEL_BUILDER(Name("_UniqueWithExtraCounts") \
.Device(DEVICE_CPU) \
.TypeConstraint<type>("T") \
.TypeConstraint<int32>("out_idx"), \
UniqueWithCountAliOp<type, int32>) \
REGISTER_KERNEL_BUILDER(Name("UniqueWithExtraCounts") \
REGISTER_KERNEL_BUILDER(Name("_UniqueWithExtraCounts") \
.Device(DEVICE_CPU) \
.TypeConstraint<type>("T") \
.TypeConstraint<int64>("out_idx"), \
Expand Down Expand Up @@ -242,12 +242,12 @@ REGISTER_UNIQUE(string)
.TypeConstraint<type>("T") \
.TypeConstraint<int64>("out_idx"), \
UniqueAliOp<type, int64>) \
REGISTER_KERNEL_BUILDER(Name("UniqueWithExtraCounts") \
REGISTER_KERNEL_BUILDER(Name("_UniqueWithExtraCounts") \
.Device(DEVICE_GPU) \
.TypeConstraint<type>("T") \
.TypeConstraint<int32>("out_idx"), \
UniqueWithCountAliOp<type, int32>) \
REGISTER_KERNEL_BUILDER(Name("UniqueWithExtraCounts") \
REGISTER_KERNEL_BUILDER(Name("_UniqueWithExtraCounts") \
.Device(DEVICE_GPU) \
.TypeConstraint<type>("T") \
.TypeConstraint<int64>("out_idx"), \
Expand Down
2 changes: 1 addition & 1 deletion tensorflow/core/ops/array_ops.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1743,7 +1743,7 @@ REGISTER_OP("UniqueWithCountsV2")

// ---------------------------------------------------

REGISTER_OP("UniqueWithExtraCounts")
REGISTER_OP("_UniqueWithExtraCounts")
.Input("x: T")
.Input("extra_indices: N * T")
.Input("extra_counts: N * out_idx")
Expand Down

0 comments on commit b7b1a1e

Please sign in to comment.