compute_memory_requirements

Function compute_memory_requirements 

Source
pub fn compute_memory_requirements(
    inputs: &[Tensor],
    contract_path: &ContractionPath,
    memory_estimator: fn(&Tensor, &Tensor) -> f64,
) -> f64
Expand description

Computes the max memory requirements for contracting the tensor network using the given path. Uses memory_estimator to compute the memory required to contract two tensors.

Candidates for memory_estimator are e.g.: