/external/tensorflow/tensorflow/core/grappler/optimizers/ |
D | arithmetic_optimizer_test_utils.h | 32 void OptimizeAndPrune(ArithmeticOptimizer* optimizer, GrapplerItem* item, in OptimizeAndPrune() argument 34 TF_EXPECT_OK(optimizer->Optimize(nullptr, *item, output)); in OptimizeAndPrune() 41 void OptimizeTwice(ArithmeticOptimizer* optimizer, GrapplerItem* item, in OptimizeTwice() argument 43 TF_EXPECT_OK(optimizer->Optimize(nullptr, *item, output)); in OptimizeTwice() 46 TF_EXPECT_OK(optimizer->Optimize(nullptr, *item, output)); in OptimizeTwice() 51 void OptimizeTwiceAndPrune(ArithmeticOptimizer* optimizer, GrapplerItem* item, 53 TF_EXPECT_OK(optimizer->Optimize(nullptr, *item, output)); 57 TF_EXPECT_OK(optimizer->Optimize(nullptr, *item, output)); 73 void DisableAllStages(ArithmeticOptimizer* optimizer) { in DisableAllStages() argument 99 optimizer->options_ = options; in DisableAllStages() [all …]
|
D | layout_optimizer_test.cc | 230 LayoutOptimizer optimizer; in TEST_F() local 233 Status status = optimizer.Optimize(virtual_cluster_.get(), item, &output); in TEST_F() 265 LayoutOptimizer optimizer; in TEST_F() local 268 Status status = optimizer.Optimize(virtual_cluster_.get(), item, &output); in TEST_F() 287 LayoutOptimizer optimizer; in TEST_F() local 289 Status status = optimizer.Optimize(virtual_cluster_.get(), item, &output); in TEST_F() 300 LayoutOptimizer optimizer; in TEST_F() local 302 Status status = optimizer.Optimize(virtual_cluster_.get(), item, &output); in TEST_F() 313 LayoutOptimizer optimizer; in TEST_F() local 315 Status status = optimizer.Optimize(virtual_cluster_.get(), item, &output); in TEST_F() [all …]
|
D | arithmetic_optimizer_test.cc | 96 ArithmeticOptimizer optimizer; in TEST_F() local 98 Status status = optimizer.Optimize(nullptr, item, &output); in TEST_F() 115 ArithmeticOptimizer optimizer; in TEST_F() local 117 OptimizeTwice(&optimizer, &item, &output); in TEST_F() 154 ArithmeticOptimizer optimizer; in TEST_F() local 157 OptimizeTwice(&optimizer, &item, &output); in TEST_F() 187 ArithmeticOptimizer optimizer; in TEST_F() local 189 OptimizeTwice(&optimizer, &item, &output); in TEST_F() 227 ArithmeticOptimizer optimizer; in TEST_F() local 228 EnableOnlyReplaceMulWithSquare(&optimizer); in TEST_F() [all …]
|
D | dependency_optimizer_test.cc | 57 DependencyOptimizer optimizer; in TEST_F() local 59 Status status = optimizer.Optimize(nullptr, item, &output); in TEST_F() 82 DependencyOptimizer optimizer; in TEST_F() local 84 Status status = optimizer.Optimize(nullptr, item, &output); in TEST_F() 88 status = optimizer.Optimize(nullptr, item, &output); in TEST_F() 117 DependencyOptimizer optimizer; in TEST_F() local 119 Status status = optimizer.Optimize(nullptr, item, &output); in TEST_F() 123 status = optimizer.Optimize(nullptr, item, &output); in TEST_F() 159 DependencyOptimizer optimizer; in TEST_F() local 161 Status status = optimizer.Optimize(nullptr, item, &output); in TEST_F() [all …]
|
D | loop_optimizer_test.cc | 61 void DisableAllStages(LoopOptimizer* optimizer) { in DisableAllStages() argument 65 optimizer->options_ = options; in DisableAllStages() 68 void EnableOnlyLoopInvariantNodeMotion(LoopOptimizer* optimizer) { in EnableOnlyLoopInvariantNodeMotion() argument 69 DisableAllStages(optimizer); in EnableOnlyLoopInvariantNodeMotion() 70 optimizer->options_.enable_loop_invariant_node_motion = true; in EnableOnlyLoopInvariantNodeMotion() 73 void EnableOnlyStackPushRemoval(LoopOptimizer* optimizer) { in EnableOnlyStackPushRemoval() argument 74 DisableAllStages(optimizer); in EnableOnlyStackPushRemoval() 75 optimizer->options_.enable_stack_push_removal = true; in EnableOnlyStackPushRemoval() 101 LoopOptimizer optimizer; in TEST_F() local 102 EnableOnlyLoopInvariantNodeMotion(&optimizer); in TEST_F() [all …]
|
/external/deqp/external/vulkancts/framework/vulkan/ |
D | vkPrograms.cpp | 120 spvtools::Optimizer optimizer(targetEnv); in optimizeCompiledBinary() local 127 …optimizer.RegisterPass(spvtools::CreateInlineExhaustivePass()); // --inline-entry-points-exhaus… in optimizeCompiledBinary() 128 …optimizer.RegisterPass(spvtools::CreateLocalAccessChainConvertPass()); // --convert-local-access-… in optimizeCompiledBinary() 129 …optimizer.RegisterPass(spvtools::CreateLocalSingleBlockLoadStoreElimPass());// --eliminate-local-s… in optimizeCompiledBinary() 130 …optimizer.RegisterPass(spvtools::CreateLocalSingleStoreElimPass()); // --eliminate-local-single-… in optimizeCompiledBinary() 131 optimizer.RegisterPass(spvtools::CreateInsertExtractElimPass()); // --eliminate-insert-extract in optimizeCompiledBinary() 132 …optimizer.RegisterPass(spvtools::CreateAggressiveDCEPass()); // --eliminate-dead-code-aggressive in optimizeCompiledBinary() 133 optimizer.RegisterPass(spvtools::CreateDeadBranchElimPass()); // --eliminate-dead-branches in optimizeCompiledBinary() 134 optimizer.RegisterPass(spvtools::CreateBlockMergePass()); // --merge-blocks in optimizeCompiledBinary() 135 …optimizer.RegisterPass(spvtools::CreateLocalSingleBlockLoadStoreElimPass());// --eliminate-local-s… in optimizeCompiledBinary() [all …]
|
/external/deqp-deps/glslang/SPIRV/ |
D | SpvTools.cpp | 122 spvtools::Optimizer optimizer(target_env); in SpirvToolsLegalize() local 123 optimizer.SetMessageConsumer( in SpirvToolsLegalize() 160 optimizer.RegisterPass(spvtools::CreatePropagateLineInfoPass()); in SpirvToolsLegalize() 162 optimizer.RegisterPass(spvtools::CreateDeadBranchElimPass()); in SpirvToolsLegalize() 163 optimizer.RegisterPass(spvtools::CreateMergeReturnPass()); in SpirvToolsLegalize() 164 optimizer.RegisterPass(spvtools::CreateInlineExhaustivePass()); in SpirvToolsLegalize() 165 optimizer.RegisterPass(spvtools::CreateEliminateDeadFunctionsPass()); in SpirvToolsLegalize() 166 optimizer.RegisterPass(spvtools::CreateScalarReplacementPass()); in SpirvToolsLegalize() 167 optimizer.RegisterPass(spvtools::CreateLocalAccessChainConvertPass()); in SpirvToolsLegalize() 168 optimizer.RegisterPass(spvtools::CreateLocalSingleBlockLoadStoreElimPass()); in SpirvToolsLegalize() [all …]
|
/external/tensorflow/tensorflow/python/training/tracking/ |
D | util_with_v1_optimizers_test.py | 84 optimizer = adam.AdamOptimizer(0.001) 87 optimizer=optimizer, model=model, optimizer_step=optimizer_step) 89 optimizer.minimize( 92 optimizer.minimize( 96 train_op = optimizer.minimize( 98 optimizer.minimize( 174 optimizer.get_slot( 192 optimizer = adam.AdamOptimizer(0.001) 194 optimizer=optimizer, model=model) 197 optimizer.minimize( [all …]
|
D | util_test.py | 265 optimizer = adam.Adam(0.001) 268 optimizer=optimizer, model=model, step=step) 275 optimizer.apply_gradients(zip(gradients, variables)), 282 optimizer.apply_gradients(zip(gradients, variables)) 400 optimizer = adam.Adam(0.001) 402 optimizer=optimizer, model=model) 408 train_op = optimizer.apply_gradients(zip(gradients, variables)) 415 m_bias_slot = optimizer.get_slot(model._named_dense.variables[1], "m") 421 sorted(optimizer.variables(), key=lambda v: v.name)) 434 optimizer=on_create_optimizer, model=on_create_model) [all …]
|
/external/tensorflow/tensorflow/contrib/optimizer_v2/ |
D | checkpointable_utils_test.py | 102 optimizer = adam.AdamOptimizer(0.001) 105 optimizer=optimizer, model=model, optimizer_step=optimizer_step) 107 optimizer.minimize( 110 optimizer.minimize( 114 train_op = optimizer.minimize( 116 optimizer.minimize( 192 optimizer.get_slot( 210 optimizer = adam.AdamOptimizer(0.001) 212 optimizer=optimizer, model=model) 215 optimizer.minimize( [all …]
|
/external/swiftshader/third_party/SPIRV-Tools/tools/opt/ |
D | opt.cpp | 54 std::string GetListOfPassesAsString(const spvtools::Optimizer& optimizer) { in GetListOfPassesAsString() argument 56 for (const auto& name : optimizer.GetPassNames()) { in GetListOfPassesAsString() 65 spvtools::Optimizer optimizer(kDefaultEnvironment); in GetLegalizationPasses() local 66 optimizer.RegisterLegalizationPasses(); in GetLegalizationPasses() 67 return GetListOfPassesAsString(optimizer); in GetLegalizationPasses() 71 spvtools::Optimizer optimizer(kDefaultEnvironment); in GetOptimizationPasses() local 72 optimizer.RegisterPerformancePasses(); in GetOptimizationPasses() 73 return GetListOfPassesAsString(optimizer); in GetOptimizationPasses() 77 spvtools::Optimizer optimizer(kDefaultEnvironment); in GetSizePasses() local 78 optimizer.RegisterSizePasses(); in GetSizePasses() [all …]
|
/external/tensorflow/tensorflow/python/keras/ |
D | optimizers_test.py | 45 def _test_optimizer(self, optimizer, target=0.75): argument 52 loss='categorical_crossentropy', optimizer=optimizer, metrics=['acc']) 54 keras.backend.get_value(model.optimizer.iterations), 0) 57 keras.backend.get_value(model.optimizer.iterations), 60 config = keras.optimizers.serialize(optimizer) 87 optimizer=optimizer, 90 keras.backend.get_value(model.optimizer.iterations), 94 keras.backend.get_value(model.optimizer.iterations), 127) 154 optimizer = keras.optimizers.TFOptimizer(AdamOptimizer(0.01)) 159 model.compile(loss='mean_squared_error', optimizer=optimizer) [all …]
|
/external/deqp-deps/SPIRV-Tools/tools/opt/ |
D | opt.cpp | 54 std::string GetListOfPassesAsString(const spvtools::Optimizer& optimizer) { in GetListOfPassesAsString() argument 56 for (const auto& name : optimizer.GetPassNames()) { in GetListOfPassesAsString() 65 spvtools::Optimizer optimizer(kDefaultEnvironment); in GetLegalizationPasses() local 66 optimizer.RegisterLegalizationPasses(); in GetLegalizationPasses() 67 return GetListOfPassesAsString(optimizer); in GetLegalizationPasses() 71 spvtools::Optimizer optimizer(kDefaultEnvironment); in GetOptimizationPasses() local 72 optimizer.RegisterPerformancePasses(); in GetOptimizationPasses() 73 return GetListOfPassesAsString(optimizer); in GetOptimizationPasses() 77 spvtools::Optimizer optimizer(kDefaultEnvironment); in GetSizePasses() local 78 optimizer.RegisterSizePasses(); in GetSizePasses() [all …]
|
/external/apache-commons-math/src/main/java/org/apache/commons/math/optimization/ |
D | MultiStartUnivariateRealOptimizer.java | 45 private final UnivariateRealOptimizer optimizer; field in MultiStartUnivariateRealOptimizer 79 public MultiStartUnivariateRealOptimizer(final UnivariateRealOptimizer optimizer, in MultiStartUnivariateRealOptimizer() argument 82 this.optimizer = optimizer; in MultiStartUnivariateRealOptimizer() 103 return optimizer.getAbsoluteAccuracy(); in getAbsoluteAccuracy() 128 return optimizer.getRelativeAccuracy(); in getRelativeAccuracy() 133 optimizer.resetAbsoluteAccuracy(); in resetAbsoluteAccuracy() 138 optimizer.resetMaximalIterationCount(); in resetMaximalIterationCount() 143 optimizer.resetRelativeAccuracy(); in resetRelativeAccuracy() 148 optimizer.setAbsoluteAccuracy(accuracy); in setAbsoluteAccuracy() 163 optimizer.setRelativeAccuracy(accuracy); in setRelativeAccuracy() [all …]
|
D | MultiStartDifferentiableMultivariateRealOptimizer.java | 44 private final DifferentiableMultivariateRealOptimizer optimizer; field in MultiStartDifferentiableMultivariateRealOptimizer 78 …artDifferentiableMultivariateRealOptimizer(final DifferentiableMultivariateRealOptimizer optimizer, in MultiStartDifferentiableMultivariateRealOptimizer() argument 81 this.optimizer = optimizer; in MultiStartDifferentiableMultivariateRealOptimizer() 163 optimizer.setConvergenceChecker(checker); in setConvergenceChecker() 168 return optimizer.getConvergenceChecker(); in getConvergenceChecker() 186 optimizer.setMaxIterations(maxIterations - totalIterations); in optimize() 187 optimizer.setMaxEvaluations(maxEvaluations - totalEvaluations); in optimize() 188 optima[i] = optimizer.optimize(f, goalType, in optimize() 196 totalIterations += optimizer.getIterations(); in optimize() 197 totalEvaluations += optimizer.getEvaluations(); in optimize() [all …]
|
D | MultiStartDifferentiableMultivariateVectorialOptimizer.java | 47 private final DifferentiableMultivariateVectorialOptimizer optimizer; field in MultiStartDifferentiableMultivariateVectorialOptimizer 82 final DifferentiableMultivariateVectorialOptimizer optimizer, in MultiStartDifferentiableMultivariateVectorialOptimizer() argument 85 this.optimizer = optimizer; in MultiStartDifferentiableMultivariateVectorialOptimizer() 167 optimizer.setConvergenceChecker(checker); in setConvergenceChecker() 172 return optimizer.getConvergenceChecker(); in getConvergenceChecker() 190 optimizer.setMaxIterations(maxIterations - totalIterations); in optimize() 191 optimizer.setMaxEvaluations(maxEvaluations - totalEvaluations); in optimize() 192 optima[i] = optimizer.optimize(f, target, weights, in optimize() 200 totalIterations += optimizer.getIterations(); in optimize() 201 totalEvaluations += optimizer.getEvaluations(); in optimize() [all …]
|
D | MultiStartMultivariateRealOptimizer.java | 44 private final MultivariateRealOptimizer optimizer; field in MultiStartMultivariateRealOptimizer 75 public MultiStartMultivariateRealOptimizer(final MultivariateRealOptimizer optimizer, in MultiStartMultivariateRealOptimizer() argument 78 this.optimizer = optimizer; in MultiStartMultivariateRealOptimizer() 153 optimizer.setConvergenceChecker(checker); in setConvergenceChecker() 158 return optimizer.getConvergenceChecker(); in getConvergenceChecker() 175 optimizer.setMaxIterations(maxIterations - totalIterations); in optimize() 176 optimizer.setMaxEvaluations(maxEvaluations - totalEvaluations); in optimize() 177 optima[i] = optimizer.optimize(f, goalType, in optimize() 185 totalIterations += optimizer.getIterations(); in optimize() 186 totalEvaluations += optimizer.getEvaluations(); in optimize()
|
/external/tensorflow/tensorflow/contrib/layers/python/layers/ |
D | optimizers_test.py | 67 for optimizer in optimizers: 72 loss, global_step, learning_rate=0.1, optimizer=optimizer) 88 loss, global_step, learning_rate=None, optimizer=optimizer_fn) 97 for optimizer in optimizers: 103 loss, global_step, learning_rate=0.1, optimizer=optimizer) 110 loss, global_step, learning_rate=0.1, optimizer="SGD", 118 None, global_step, learning_rate=0.1, optimizer="SGD") 121 [[1.0]], global_step, learning_rate=0.1, optimizer="SGD") 135 optimizer="SGD") 146 optimizer="SGD") [all …]
|
D | optimizers.py | 36 from tensorflow.python.training import optimizer as optimizer_ 60 optimizer, argument 202 if isinstance(optimizer, six.string_types): 205 "optimizer is string (%s)." % optimizer) 206 if optimizer not in OPTIMIZER_CLS_NAMES: 209 (", ".join(OPTIMIZER_CLS_NAMES), optimizer)) 210 opt = OPTIMIZER_CLS_NAMES[optimizer](learning_rate=lr) 211 elif (isinstance(optimizer, type) and 212 issubclass(optimizer, optimizer_.Optimizer)): 215 "optimizer is class (%s)." % optimizer) [all …]
|
/external/tensorflow/tensorflow/contrib/constrained_optimization/python/ |
D | swap_regret_optimizer_test.py | 40 def __init__(self, optimizer, constraint_optimizer=None): argument 43 optimizer=optimizer, constraint_optimizer=constraint_optimizer) 68 optimizer, argument 74 optimizer=optimizer, 151 optimizer = AdditiveSwapRegretOptimizerWrapper( 153 train_op = optimizer.minimize_constrained(minimization_problem) 171 matrices.append(session.run(optimizer.stochastic_matrix)) 181 optimizer = MultiplicativeSwapRegretOptimizerWrapper( 184 train_op = optimizer.minimize_constrained(minimization_problem) 204 matrices.append(session.run(optimizer.stochastic_matrix))
|
/external/tensorflow/tensorflow/contrib/opt/python/training/ |
D | external_optimizer_test.py | 86 optimizer = MockOptimizerInterface(loss) 91 optimizer.minimize(sess) 108 optimizer = MockOptimizerInterface(loss) 120 optimizer.minimize( 164 optimizer = external_optimizer.ScipyOptimizerInterface( 169 optimizer.minimize(sess) 177 optimizer = external_optimizer.ScipyOptimizerInterface(self._objective(x)) 181 optimizer.minimize(sess) 242 optimizer = external_optimizer.ScipyOptimizerInterface( 247 optimizer.minimize(sess) [all …]
|
/external/tensorflow/tensorflow/core/grappler/optimizers/data/ |
D | meta_optimizer.cc | 70 const auto* optimizer = gtl::FindOrNull(enabled_optimizers_, name); in ApplyOptimization() local 71 if (!optimizer) { in ApplyOptimization() 76 (*optimizer)->set_deadline_usec(this->deadline_usec()); in ApplyOptimization() 77 TF_RETURN_IF_ERROR((*optimizer)->Optimize(cluster, *item, &result)); in ApplyOptimization() 90 auto optimizer = in Init() local 92 if (optimizer) { in Init() 95 TF_RETURN_IF_ERROR(optimizer->Init()); in Init() 96 enabled_optimizers_[optimizer_name] = std::move(optimizer); in Init()
|
/external/tensorflow/tensorflow/contrib/timeseries/python/timeseries/ |
D | estimators.py | 50 def __init__(self, model, state_manager=None, optimizer=None, model_dir=None, argument 72 if optimizer is None: 73 optimizer = train.AdamOptimizer(0.02) 76 model=model, state_manager=state_manager, optimizer=optimizer, 304 optimizer=None, model_dir=None, config=None): argument 347 if optimizer is None: 348 optimizer = train.AdagradOptimizer(0.1) 385 optimizer=optimizer, 484 optimizer="Adam", argument 524 optimizer = optimizers.get_optimizer_instance( [all …]
|
/external/tensorflow/tensorflow/contrib/eager/python/ |
D | saver_test.py | 144 def _optimizer_test_template(self, optimizer): argument 148 optimizer.minimize(loss_fn) 149 optimizer_variables = _saver.get_optimizer_variables(optimizer) 152 optimizer.minimize(loss_fn) 157 optimizer.minimize(loss_fn) 162 optimizer = adam.AdamOptimizer(0.1) 163 self._optimizer_test_template(optimizer) 166 optimizer = gradient_descent.GradientDescentOptimizer(0.02) 167 self.assertEqual(0, len(self._optimizer_test_template(optimizer))) 170 optimizer = momentum.MomentumOptimizer( [all …]
|
/external/tensorflow/tensorflow/contrib/distribute/python/ |
D | keras_test.py | 117 optimizer=gradient_descent.GradientDescentOptimizer(0.001), 311 combinations.combine(optimizer=[ 352 optimizer=rmsprop.RMSPropOptimizer(learning_rate=0.01)) 382 optimizer=rmsprop.RMSPropOptimizer(learning_rate=0.01)) 460 optimizer=keras.optimizers.rmsprop(lr=0.01)) 613 optimizer = gradient_descent.GradientDescentOptimizer(0.001) 616 model.compile(optimizer, loss, metrics=metrics) 644 optimizer = gradient_descent.GradientDescentOptimizer( 647 model.compile(optimizer, loss) 680 optimizer = rmsprop.RMSPropOptimizer(learning_rate=0.001) [all …]
|