Add missing TfLiteFloat16 specialization to GetTensorData.
PiperOrigin-RevId: 259415502
This commit is contained in:
parent
6b0dba99c3
commit
aca02856dd
@ -28,6 +28,11 @@ inline float* GetTensorData(TfLiteTensor* tensor) {
|
||||
return tensor != nullptr ? tensor->data.f : nullptr;
|
||||
}
|
||||
|
||||
template <>
|
||||
inline TfLiteFloat16* GetTensorData(TfLiteTensor* tensor) {
|
||||
return tensor != nullptr ? tensor->data.f16 : nullptr;
|
||||
}
|
||||
|
||||
template <>
|
||||
inline uint8_t* GetTensorData(TfLiteTensor* tensor) {
|
||||
return tensor != nullptr ? tensor->data.uint8 : nullptr;
|
||||
|
Loading…
Reference in New Issue
Block a user