Home
last modified time | relevance | path

Searched refs:optimizer (Results 1 – 25 of 651) sorted by relevance

12345678910>>...27

/external/tensorflow/tensorflow/core/grappler/optimizers/
Darithmetic_optimizer_test_utils.h32 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 …]
Dlayout_optimizer_test.cc230 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 …]
Darithmetic_optimizer_test.cc96 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 …]
Ddependency_optimizer_test.cc57 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 …]
Dloop_optimizer_test.cc61 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/
DvkPrograms.cpp120 spvtools::Optimizer optimizer(targetEnv); in optimizeCompiledBinary() local
127optimizer.RegisterPass(spvtools::CreateInlineExhaustivePass()); // --inline-entry-points-exhaus… in optimizeCompiledBinary()
128optimizer.RegisterPass(spvtools::CreateLocalAccessChainConvertPass()); // --convert-local-access-… in optimizeCompiledBinary()
129optimizer.RegisterPass(spvtools::CreateLocalSingleBlockLoadStoreElimPass());// --eliminate-local-s… in optimizeCompiledBinary()
130optimizer.RegisterPass(spvtools::CreateLocalSingleStoreElimPass()); // --eliminate-local-single-… in optimizeCompiledBinary()
131 optimizer.RegisterPass(spvtools::CreateInsertExtractElimPass()); // --eliminate-insert-extract in optimizeCompiledBinary()
132optimizer.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()
135optimizer.RegisterPass(spvtools::CreateLocalSingleBlockLoadStoreElimPass());// --eliminate-local-s… in optimizeCompiledBinary()
[all …]
/external/deqp-deps/glslang/SPIRV/
DSpvTools.cpp122 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/
Dutil_with_v1_optimizers_test.py84 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 …]
Dutil_test.py265 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/
Dcheckpointable_utils_test.py102 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/
Dopt.cpp54 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/
Doptimizers_test.py45 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/
Dopt.cpp54 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/
DMultiStartUnivariateRealOptimizer.java45 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 …]
DMultiStartDifferentiableMultivariateRealOptimizer.java44 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 …]
DMultiStartDifferentiableMultivariateVectorialOptimizer.java47 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 …]
DMultiStartMultivariateRealOptimizer.java44 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/
Doptimizers_test.py67 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 …]
Doptimizers.py36 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/
Dswap_regret_optimizer_test.py40 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/
Dexternal_optimizer_test.py86 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/
Dmeta_optimizer.cc70 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/
Destimators.py50 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/
Dsaver_test.py144 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/
Dkeras_test.py117 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 …]

12345678910>>...27