| 97 | } |
| 98 | |
| 99 | void DynamicBuffer::WriteToTensorAsVector(TfLiteTensor* tensor) { |
| 100 | auto dims = TfLiteIntArrayCreate(1); |
| 101 | dims->data[0] = offset_.size() - 1; // Store number of strings. |
| 102 | WriteToTensor(tensor, dims); |
| 103 | } |
| 104 | |
| 105 | void DynamicBuffer::WriteToTensor(TfLiteTensor* tensor, |
| 106 | TfLiteIntArray* new_shape) { |