Skip to content

Commit dd91905

Browse files
No public description
PiperOrigin-RevId: 645935675
1 parent 272d08b commit dd91905

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

tensorflow_text/core/kernels/sentencepiece/sentencepiece_detokenizer_kernel.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ class TFSentencepieceDetokenizerOp : public tensorflow::OpKernel {
6868
const auto res = sentencepiece::DecodeString(
6969
codes_for_split, model_tensor.data());
7070
OP_REQUIRES(ctx, res.type == sentencepiece::DecoderResultType::SUCCESS,
71-
tensorflow::Status(static_cast<tsl::errors::Code>(
71+
tensorflow::Status(static_cast<absl::StatusCode>(
7272
absl::StatusCode::kInternal),
7373
"Sentencepiece conversion failed"));
7474
output_flat(i) = res.decoded;

tensorflow_text/core/kernels/sentencepiece/sentencepiece_tokenizer_kernel.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ class TFSentencepieceOp : public tensorflow::OpKernel {
6565
const auto res = sentencepiece::EncodeString(
6666
input_values_flat(i), model_tensor.data(), add_bos, add_eos, reverse);
6767
OP_REQUIRES(ctx, res.type == sentencepiece::EncoderResultType::SUCCESS,
68-
tensorflow::Status(static_cast<tsl::errors::Code>(
68+
tensorflow::Status(static_cast<absl::StatusCode>(
6969
absl::StatusCode::kInternal),
7070
"Sentencepiece conversion failed"));
7171
std::copy(res.codes.begin(), res.codes.end(),

0 commit comments

Comments
 (0)