opt_einsum_path/paths/
no_optimize.rs

1use crate::*;
2
3#[derive(Debug, Clone, Default)]
4pub struct NoOptimize;
5
6impl PathOptimizer for NoOptimize {
7    fn optimize_path(
8        &mut self,
9        inputs: &[&ArrayIndexType],
10        _output: &ArrayIndexType,
11        _size_dict: &SizeDictType,
12        _memory_limit: Option<SizeType>,
13    ) -> Result<PathType, String> {
14        Ok(vec![(0..inputs.len()).collect()])
15    }
16}