mirror of
https://github.com/saymrwulf/onnxruntime.git
synced 2026-07-07 17:15:29 +00:00
Revert a bad change in bfc_arena.cc (#10057)
This commit is contained in:
parent
6357c12977
commit
44c701192b
1 changed files with 1 additions and 1 deletions
|
|
@ -164,7 +164,7 @@ Status BFCArena::Extend(size_t rounded_bytes) {
|
|||
static constexpr float kBackpedalFactor = 0.9f;
|
||||
// Try allocating less memory.
|
||||
while (mem_addr == nullptr) {
|
||||
bytes = RoundedBytes(static_cast<size_t>(bytes) * static_cast<size_t>(kBackpedalFactor));
|
||||
bytes = RoundedBytes(static_cast<size_t>(bytes * kBackpedalFactor));
|
||||
|
||||
// give up if we can't satisfy the requested size, or we're attempting an allocation of less than 8K.
|
||||
//
|
||||
|
|
|
|||
Loading…
Reference in a new issue