| 69 | { |
| 70 | } |
| 71 | void TFPreproccessor::preprocess(ITensor &tensor) |
| 72 | { |
| 73 | if (tensor.info()->data_type() == DataType::F32) |
| 74 | { |
| 75 | preprocess_typed<float>(tensor); |
| 76 | } |
| 77 | else if (tensor.info()->data_type() == DataType::F16) |
| 78 | { |
| 79 | preprocess_typed<half>(tensor); |
| 80 | } |
| 81 | else |
| 82 | { |
| 83 | ARM_COMPUTE_ERROR("NOT SUPPORTED!"); |
| 84 | } |
| 85 | } |
| 86 | |
| 87 | template <typename T> |
| 88 | void TFPreproccessor::preprocess_typed(ITensor &tensor) |
no test coverage detected