ocannl
ocannl copied to clipboard
Make small-code/computation nodes virtual even if they have many accesses (optionally)
Currently the heuristic to make nodes virtual only considers the usage, not the cost of single use. We should at least have the option to make getter-only (axis permutation: einsum1 without summing-out axes) and dynamic indexing nodes virtual, and maybe other low-computation patterns.
Dynamic indexing is reverted for now, but we might reintroduce it. However, this is a general suggestion about inlining.