Files
pytorch/torch/nativert/executor/memory/Bump.h
dolpm eab45643f2 [nativert] move layout planner algorithms to libtorch (#156508)
Summary: tt

Test Plan:
ci

Rollback Plan:

Differential Revision: D76832891

Pull Request resolved: https://github.com/pytorch/pytorch/pull/156508
Approved by: https://github.com/zhxchen17
2025-06-21 07:35:40 +00:00

14 lines
380 B
C++

#pragma once
#include <torch/nativert/executor/memory/LayoutPlannerAlgorithm.h>
namespace torch::nativert {
// lay out all tensors contiguously in memory
// this doesn't take into account lifetimes,
// it literally just puts them all next to each other
LayoutPlan BumpAllocationPlanner(
const std::vector<AllocationSpec>& allocation_specs);
} // namespace torch::nativert