dgasmith / opt_einsum

⚡️Optimizing einsum functions in NumPy, Tensorflow, Dask, and more with contraction order optimization.
https://dgasmith.github.io/opt_einsum/
MIT License
863 stars 68 forks source link

fix random greedy for python 3.5 & make deterministic for 3.6+ #127

Closed jcmgray closed 4 years ago

jcmgray commented 4 years ago

Description

Fixes random greedy optimizers for py3.5 (which doesn't have random.choices). Also makes the random greedy optimizer deterministic for py3.6+ (by seeding at the very beginning).

Should fix #126 (edit: doesn't address tests not running with py3.5).

Status

codecov[bot] commented 4 years ago

Codecov Report

Merging #127 into master will decrease coverage by 0.38%. The diff coverage is n/a.