flopscope.

flopscope.numpy.clear_einsum_cache

flopscope.numpy.clear_einsum_cache()[flopscope source]

Clear the einsum path cache.

Parameters

None

Returns

:None

Discards all cached contraction paths.

Notes

Discards all cached contraction paths. Subsequent einsum() and einsum_path() calls will recompute paths from scratch.

Examples

>>> import flopscope.numpy as fnp
>>> fnp.clear_einsum_cache()