[planner] Update optimized v1 planner
authorParichay Kapoor <pk.kapoor@samsung.com>
Fri, 3 Sep 2021 08:37:43 +0000 (17:37 +0900)
committerJijoong Moon <jijoong.moon@samsung.com>
Tue, 5 Oct 2021 11:48:57 +0000 (20:48 +0900)
commit7a34d1c0dd6af8e8ba85e87382827cea2c9178ee
tree83180b832acae9d1460cea7e6531f0e7fc62ceec
parent09abfd78e31c9dc055d9cc2ceed7d8b3f4396191
[planner] Update optimized v1 planner

Optimized v1 planner is updated to reuse expired allocations which are
not at the top the sorted list. This is a heuristic which works well for
training memory usage scenario.

The unittest is also updated to be more generic when checking the
interval overlap with the allocations.

Signed-off-by: Parichay Kapoor <pk.kapoor@samsung.com>
nntrainer/graph/network_graph.cpp
nntrainer/tensor/optimized_v1_planner.cpp
test/unittest/memory/memory_planner_validate.cpp