Searched refs:bytes_required (Results 1 – 7 of 7) sorted by relevance
383 uint64_t bytes_required = 1; in VerifyNumericTensorBuffer() local395 bytes_required = num_elements.value(); in VerifyNumericTensorBuffer()396 if (bytes_required > UINT_MAX) { in VerifyNumericTensorBuffer()403 bytes_required *= dim; in VerifyNumericTensorBuffer()404 if (bytes_required > UINT_MAX) { in VerifyNumericTensorBuffer()414 bytes_required *= sizeof(float); in VerifyNumericTensorBuffer()417 bytes_required *= sizeof(uint16_t); in VerifyNumericTensorBuffer()420 bytes_required *= sizeof(double); in VerifyNumericTensorBuffer()423 bytes_required *= sizeof(int32_t); in VerifyNumericTensorBuffer()426 bytes_required *= sizeof(uint32_t); in VerifyNumericTensorBuffer()[all …]
61 bytes_required = max(1, math.ceil(number.bit_length() / 8))66 return number.to_bytes(bytes_required, 'big')
165 auto bytes_required = input->bytes; in Eval() local166 TfLiteTensorRealloc(bytes_required, output); in Eval()167 output->bytes = bytes_required; in Eval()
302 const std::uint8_t* raw_data, std::size_t bytes_required, in RemoveStartCodeEmulationPreventionBytes() argument304 if (bytes_required == 0 || !processed_data) in RemoveStartCodeEmulationPreventionBytes()312 for (i = 0; bytes_copied < bytes_required; ++i) { in RemoveStartCodeEmulationPreventionBytes()
165 const std::uint8_t* raw_data, std::size_t bytes_required,
468 DWORD bytes_required; in init() local472 &bytes_required)); in init()473 if (bytes_required > modules_buffer_size) { in init()478 modules_buffer_size = bytes_required; in init()483 size_t num_modules = bytes_required / sizeof(HMODULE); in init()
622 DWORD bytes_required; in init() local626 &bytes_required)); in init()627 if (bytes_required > modules_buffer_size) { in init()632 modules_buffer_size = bytes_required; in init()637 size_t num_modules = bytes_required / sizeof(HMODULE); in init()