Internal change
PiperOrigin-RevId: 521327449
This commit is contained in:
parent
1fa9b2c985
commit
696bedcaa1
|
@ -191,8 +191,9 @@ absl::StatusOr<ImageTensorSpecs> BuildInputImageTensorSpecs(
|
|||
MediaPipeTasksStatus::kInvalidInputTensorDimensionsError);
|
||||
}
|
||||
|
||||
size_t byte_depth =
|
||||
tensor_type == tflite::TensorType_FLOAT32 ? sizeof(float) : sizeof(uint8);
|
||||
size_t byte_depth = tensor_type == tflite::TensorType_FLOAT32
|
||||
? sizeof(float)
|
||||
: sizeof(uint8_t);
|
||||
int bytes_size = byte_depth * batch * height * width * depth;
|
||||
// Sanity checks.
|
||||
if (tensor_type == tflite::TensorType_FLOAT32) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user