| 473 | } |
| 474 | |
| 475 | MemoryPlannerFactory::MemoryPlannerFactory() { |
| 476 | // Enable Memory Optimization by default |
| 477 | Status s = ReadBoolFromEnvVar("ENABLE_MEMORY_OPTIMIZATION", |
| 478 | true, |
| 479 | &enable_memory_opt_); |
| 480 | if (enable_memory_opt_) { |
| 481 | //LOG(INFO_DEV) << "Enable Memory Optimization!"; |
| 482 | memory_planner_ = new MemoryPlanner(); |
| 483 | } else { |
| 484 | memory_planner_ = new NullableMemoryPlanner(); |
| 485 | } |
| 486 | } |
| 487 | |
| 488 | } // tensorflow |
nothing calls this directly
no test coverage detected