To speed-up repeated evaluation of the same Evaluable, this PR introduces Evaluable._deep_flatten_constants, which replaces constant Arrays with Constants, excluding the no-op arrays Transpose and InsertAxis, and includes this in optimized_for_numpy.
To speed-up repeated evaluation of the same
Evaluable
, this PR introducesEvaluable._deep_flatten_constants
, which replaces constantArray
s withConstant
s, excluding the no-op arraysTranspose
andInsertAxis
, and includes this inoptimized_for_numpy
.