mirror of
https://github.com/zebrajr/tensorflow.git
synced 2025-12-06 12:20:11 +01:00
Relax the folding size threshold to 200 MiB.
PiperOrigin-RevId: 784254600
This commit is contained in:
parent
6be89e0c0a
commit
6f051796d3
|
|
@ -253,7 +253,7 @@ bool ShouldFoldOperation(Operation* inst) {
|
|||
|
||||
constexpr int kSizeFactor = 2;
|
||||
constexpr int64_t kResultsSizeThreshold = (1 << 16); // 64 Kib = 8 KiB
|
||||
constexpr int64_t kOperandsSizeThreshold = (1 << 30); // 1 Gib = 128 MiB
|
||||
constexpr int64_t kOperandsSizeThreshold = 200L * 1024 * 1024 * 8; // 200 MiB
|
||||
|
||||
return (operands_size <= kOperandsSizeThreshold) &&
|
||||
((results_size <= kResultsSizeThreshold) ||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user