Skip to content

Commit

Permalink
No public description
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 713241564
  • Loading branch information
tf-text-github-robot committed Jan 8, 2025
1 parent 87715fb commit b90d730
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,9 @@ class RaggedTensorToTensorOpModel : public SingleOpModel {
std::vector<int> GetOutputShape() { return GetTensorShape(output_); }

std::vector<float> GetOutputFloat() { return ExtractVector<float>(output_); }
std::vector<int32> GetOutputInt() { return ExtractVector<int32>(output_); }
std::vector<int32_t> GetOutputInt() {
return ExtractVector<int32_t>(output_);
}

void InvokeFloat(const std::vector<int>& shape,
const std::vector<float>& values, float default_value,
Expand All @@ -114,7 +116,7 @@ class RaggedTensorToTensorOpModel : public SingleOpModel {
SingleOpModel::Invoke();
}
void InvokeInt(const std::vector<int>& shape,
const std::vector<int32>& values, int32 default_value,
const std::vector<int32_t>& values, int32_t default_value,
const std::vector<std::vector<int>>& partition_values) {
PopulateTensor(input_shape_, shape);
PopulateTensor(input_values_, values);
Expand Down

0 comments on commit b90d730

Please sign in to comment.