Inherited methods overridden:
| 413 | protected: |
| 414 | // Inherited methods overridden: |
| 415 | void validate_info(const ITensorInfo *tensor_info) override |
| 416 | { |
| 417 | // Check if the file is large enough to fill the image |
| 418 | const size_t current_position = _fs.tellg(); |
| 419 | _fs.seekg(0, std::ios_base::end); |
| 420 | const size_t end_position = _fs.tellg(); |
| 421 | _fs.seekg(current_position, std::ios_base::beg); |
| 422 | |
| 423 | ARM_COMPUTE_ERROR_ON_MSG((end_position - current_position) < tensor_info->tensor_shape().total_size(), |
| 424 | "Not enough data in file"); |
| 425 | ARM_COMPUTE_UNUSED(end_position, tensor_info); |
| 426 | } |
| 427 | |
| 428 | private: |
| 429 | std::ifstream _fs; |
nothing calls this directly
no test coverage detected