Class ConstantFunctionOptimizations
- java.lang.Object
-
- org.nd4j.autodiff.samediff.optimize.optimizations.BaseOptimizerSet
-
- org.nd4j.autodiff.samediff.optimize.optimizations.ConstantFunctionOptimizations
-
- All Implemented Interfaces:
OptimizerSet
public class ConstantFunctionOptimizations extends BaseOptimizerSet
This set of optimizations looks for functions that are applied to constants, and "pre executes" them, so they don't have to be calculated (returning the same value) on each run.- Author:
- Alex Black
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ConstantFunctionOptimizations.FoldConstantFunctions
-
Field Summary
Fields Modifier and Type Field Description static String
CONSTANT_FN_FOLDING_MAX_SIZE
static long
CONSTANT_FN_FOLDING_MAX_SIZE_DEFAULT
-
Constructor Summary
Constructors Constructor Description ConstantFunctionOptimizations()
-
-
-
Field Detail
-
CONSTANT_FN_FOLDING_MAX_SIZE
public static final String CONSTANT_FN_FOLDING_MAX_SIZE
- See Also:
- Constant Field Values
-
CONSTANT_FN_FOLDING_MAX_SIZE_DEFAULT
public static final long CONSTANT_FN_FOLDING_MAX_SIZE_DEFAULT
- See Also:
- Constant Field Values
-
-