Template Function sequant::opt::detail::peak_cost_batched

Function Documentation

template<typename TIdxs, typename IdxToSz>
double sequant::opt::detail::peak_cost_batched(TensorNetwork const &network, TIdxs const &tidxs, IdxToSz &&idxsz, std::function<bool(Index const&)> const &is_batchable, std::function<std::size_t(Index const&)> const &batch_target_size, std::function<bool(Tensor const&)> const &is_volatile_leaf)

Achieved minimum batched peak memory: the peak[root][B=0] objective of the multi-mode batched DP. Builds PeakBatchedModel, runs solve_single_term, and returns the root subset’s B=0 peak.