Searched refs:bytes_required (Results 1 – 7 of 7) sorted by relevance
376 uint64_t bytes_required = 1; in VerifyNumericTensorBuffer() local388 bytes_required = num_elements.value(); in VerifyNumericTensorBuffer()389 if (bytes_required > UINT_MAX) { in VerifyNumericTensorBuffer()396 bytes_required *= dim; in VerifyNumericTensorBuffer()397 if (bytes_required > UINT_MAX) { in VerifyNumericTensorBuffer()407 bytes_required *= sizeof(float); in VerifyNumericTensorBuffer()410 bytes_required *= sizeof(uint16_t); in VerifyNumericTensorBuffer()413 bytes_required *= sizeof(double); in VerifyNumericTensorBuffer()416 bytes_required *= sizeof(int32_t); in VerifyNumericTensorBuffer()419 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')
181 auto bytes_required = input->bytes; in Eval() local182 TfLiteTensorRealloc(bytes_required, output); in Eval()183 output->bytes = bytes_required; in Eval()
631 DWORD bytes_required = 0; in GetLoadedModulesSnapshot() local639 &bytes_required)) { in GetLoadedModulesSnapshot()643 DCHECK_EQ(0u, bytes_required % sizeof(HMODULE)); in GetLoadedModulesSnapshot()644 size_t num_modules = bytes_required / sizeof(HMODULE); in GetLoadedModulesSnapshot()
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()