Home
last modified time | relevance | path

Searched full:strategy (Results 1 – 25 of 1181) sorted by relevance

12345678910>>...48

/external/tensorflow/tensorflow/contrib/distribute/python/
Dstrategy_test_lib.py331 def _test_global_step_update(self, strategy): argument
332 with strategy.scope():
347 train_ops, value = strategy.extended.call_for_each_replica(model_fn)
348 self.evaluate(strategy.group(train_ops))
349 global_step_tensors = strategy.experimental_local_results(value)
353 def _test_numpy_iterator(self, strategy): argument
354 with strategy.scope(), self.cached_session() as sess:
359 if not strategy.extended._global_batch_size: # pylint: disable=protected-access
360 batch_size = batch_size // strategy.num_replicas_in_sync
361 i = strategy.experimental_make_numpy_iterator(
[all …]
/external/python/google-api-python-client/docs/dyn/
Ddfareporting_v2_8.placementStrategies.html79 <p class="firstline">Deletes an existing placement strategy.</p>
82 <p class="firstline">Gets one placement strategy by ID.</p>
85 <p class="firstline">Inserts a new placement strategy.</p>
94 <p class="firstline">Updates an existing placement strategy. This method supports patch semantics.<…
97 <p class="firstline">Updates an existing placement strategy.</p>
101 <pre>Deletes an existing placement strategy.
105 id: string, Placement strategy ID. (required)
111 <pre>Gets one placement strategy by ID.
115 id: string, Placement strategy ID. (required)
120 { # Contains properties of a placement strategy.
[all …]
Ddfareporting_v2_7.placementStrategies.html79 <p class="firstline">Deletes an existing placement strategy.</p>
82 <p class="firstline">Gets one placement strategy by ID.</p>
85 <p class="firstline">Inserts a new placement strategy.</p>
94 <p class="firstline">Updates an existing placement strategy. This method supports patch semantics.<…
97 <p class="firstline">Updates an existing placement strategy.</p>
101 <pre>Deletes an existing placement strategy.
105 id: string, Placement strategy ID. (required)
111 <pre>Gets one placement strategy by ID.
115 id: string, Placement strategy ID. (required)
120 { # Contains properties of a placement strategy.
[all …]
/external/jacoco/org.jacoco.core.test/src/org/jacoco/core/internal/instr/
DProbeArrayStrategyFactoryTest.java51 final IProbeArrayStrategy strategy = test(Opcodes.V1_1, 0, false, true, in testClass1() local
53 assertEquals(ClassFieldProbeArrayStrategy.class, strategy.getClass()); in testClass1()
60 final IProbeArrayStrategy strategy = test(Opcodes.V1_2, 0, false, true, in testClass2() local
62 assertEquals(ClassFieldProbeArrayStrategy.class, strategy.getClass()); in testClass2()
69 final IProbeArrayStrategy strategy = test(Opcodes.V1_3, 0, false, true, in testClass3() local
71 assertEquals(ClassFieldProbeArrayStrategy.class, strategy.getClass()); in testClass3()
78 final IProbeArrayStrategy strategy = test(Opcodes.V1_4, 0, false, true, in testClass4() local
80 assertEquals(ClassFieldProbeArrayStrategy.class, strategy.getClass()); in testClass4()
87 final IProbeArrayStrategy strategy = test(Opcodes.V1_5, 0, false, true, in testClass5() local
89 assertEquals(ClassFieldProbeArrayStrategy.class, strategy.getClass()); in testClass5()
[all …]
/external/objenesis/main/src/main/java/org/objenesis/
DObjenesisBase.java19 import org.objenesis.strategy.InstantiatorStrategy;
24 * Base class to extend if you want to have a class providing your own default strategy. Can also be
31 /** Strategy used by this Objenesi implementation to create classes */
32 protected final InstantiatorStrategy strategy; field in ObjenesisBase
34 /** Strategy cache. Key = Class, Value = InstantiatorStrategy */
38 * Constructor allowing to pick a strategy and using cache
40 * @param strategy Strategy to use
42 public ObjenesisBase(InstantiatorStrategy strategy) { in ObjenesisBase() argument
43 this(strategy, true); in ObjenesisBase()
47 * Flexible constructor allowing to pick the strategy and if caching should be used
[all …]
/external/squashfs-tools/squashfs-tools/
Dgzip_wrapper.c33 static struct strategy strategy[] = { variable
112 for(i = 0; strategy[i].name; i++) { in gzip_options()
113 int n = strlen(strategy[i].name); in gzip_options()
114 if((strncmp(name, strategy[i].name, n) == 0) && in gzip_options()
117 if(strategy[i].selected == 0) { in gzip_options()
118 strategy[i].selected = 1; in gzip_options()
125 if(strategy[i].name == NULL) { in gzip_options()
127 "strategy\n"); in gzip_options()
152 if(strategy_count == 1 && strategy[0].selected) { in gzip_options_post()
154 strategy[0].selected = 0; in gzip_options_post()
[all …]
/external/perfetto/src/traced/probes/ftrace/
Devent_info_unittest.cc50 ASSERT_FALSE(field.strategy); in TEST()
67 ASSERT_FALSE(field.strategy); in TEST()
73 TranslationStrategy strategy = kUint32ToUint32; in TEST() local
75 &strategy)); in TEST()
76 ASSERT_EQ(strategy, kUint32ToUint32); in TEST()
78 &strategy)); in TEST()
79 ASSERT_EQ(strategy, kCStringToString); in TEST()
81 SetTranslationStrategy(kFtracePid32, ProtoSchemaType::kInt32, &strategy)); in TEST()
82 ASSERT_EQ(strategy, kPid32ToInt32); in TEST()
84 &strategy)); in TEST()
[all …]
/external/tensorflow/tensorflow/python/distribute/
Ddistribution_strategy_context.py15 """Utility to get tf.distribute.Strategy related contexts."""
34 # replica or cross-replica context for a particular tf.distribute.Strategy.
40 self.strategy = dist
47 def __init__(self, strategy): argument
48 _ThreadMode.__init__(self, strategy, strategy, None)
54 _ThreadMode.__init__(self, replica_ctx.strategy, None, replica_ctx)
98 `None`) when entering a `with tf.distribute.Strategy.scope():` block;
106 cross-replica context for the default `tf.distribute.Strategy`. You may
110 Most `tf.distribute.Strategy` methods may only be executed in
127 """Returns the current tf.distribute.Strategy if in a cross-replica context.
[all …]
Ddistribute_lib.py48 # Context tracking whether in a strategy.update() or .update_non_slot() call.
55 """Get the current device if in a `tf.distribute.Strategy.update()` call."""
104 strategy = extended._container_strategy() # pylint: disable=protected-access
106 if context.strategy is not strategy:
107 _wrong_strategy_scope(strategy, context)
113 def _wrong_strategy_scope(strategy, context): argument
117 'Need to be inside "with strategy.scope()" for %s' %
118 (strategy,))
121 "Mixing different tf.distribute.Strategy objects: %s is not %s" %
122 (context.strategy, strategy))
[all …]
Ddistribute_coordinator.py113 strategy, argument
123 strategy: a `DistributionStrategy` object.
137 self._strategy = strategy
228 by querying the `strategy` object when `create_session` is called on it.
327 strategy, argument
337 strategy = copy.deepcopy(strategy)
340 # It is possible to not have a strategy object for EVALUATOR task.
341 if strategy:
342 strategy.configure(session_config)
344 assert strategy
[all …]
/external/glide/library/src/main/java/com/bumptech/glide/load/engine/bitmap_recycle/
DLruBitmapPool.java24 private final LruPoolStrategy strategy; field in LruBitmapPool
36 LruBitmapPool(int maxSize, LruPoolStrategy strategy) { in LruBitmapPool() argument
39 this.strategy = strategy; in LruBitmapPool()
65 if (!bitmap.isMutable() || strategy.getSize(bitmap) > maxSize) { in put()
67 Log.v(TAG, "Reject bitmap from pool=" + strategy.logBitmap(bitmap) + " is mutable=" in put()
73 final int size = strategy.getSize(bitmap); in put()
74 strategy.put(bitmap); in put()
81 Log.v(TAG, "Put bitmap in pool=" + strategy.logBitmap(bitmap)); in put()
111 final Bitmap result = strategy.get(width, height, config != null ? config : DEFAULT_CONFIG); in getDirty()
114 Log.d(TAG, "Missing bitmap=" + strategy.logBitmap(width, height, config)); in getDirty()
[all …]
/external/tensorflow/tensorflow/contrib/learn/python/learn/
Dexport_strategy_test.py33 strategy = export_strategy.ExportStrategy('foo', _export_fn)
34 self.assertTupleEqual(strategy, ('foo', _export_fn, None))
35 self.assertIs(strategy.export(None, None), model_path)
44 strategy = export_strategy.ExportStrategy('foo', _ckpt_export_fn)
45 self.assertTupleEqual(strategy, ('foo', _ckpt_export_fn, None))
46 self.assertIs(strategy.export(None, None, 'checkpoint'), ckpt_model_path)
57 strategy = export_strategy.ExportStrategy('foo', _ckpt_eval_export_fn)
58 self.assertTupleEqual(strategy, ('foo', _ckpt_eval_export_fn, None))
59 self.assertIs(strategy.export(None, None, 'checkpoint', 'eval'),
66 strategy = export_strategy.ExportStrategy('foo', _eval_export_fn)
[all …]
/external/desugar/test/java/com/google/devtools/build/android/desugar/runtime/
DThrowableExtensionTest.java197 MimicDesugaringStrategy strategy = new MimicDesugaringStrategy(); in testLightweightStackTraceRecorder() local
198 ExceptionForTest receiver = new ExceptionForTest(strategy); in testLightweightStackTraceRecorder()
200 strategy.addSuppressed(receiver, suppressed); in testLightweightStackTraceRecorder()
202 String trace = printStackTraceStderrToString(() -> strategy.printStackTrace(receiver)); in testLightweightStackTraceRecorder()
209 MimicDesugaringStrategy strategy = new MimicDesugaringStrategy(); in testMimicDesugaringStrategy() local
212 strategy.addSuppressed(receiver, suppressed); in testMimicDesugaringStrategy()
216 stream -> strategy.printStackTrace(receiver, stream))) in testMimicDesugaringStrategy()
221 writer -> strategy.printStackTrace(receiver, writer))) in testMimicDesugaringStrategy()
224 assertThat(printStackTraceStderrToString(() -> strategy.printStackTrace(receiver))) in testMimicDesugaringStrategy()
286 NullDesugaringStrategy strategy = new NullDesugaringStrategy(); in testNullDesugaringStrategy() local
[all …]
/external/guava/guava/src/com/google/common/hash/
DBloomFilter.java64 * A strategy to translate T instances, to {@code numHashFunctions} bit indexes.
68 interface Strategy extends java.io.Serializable { interface in BloomFilter
85 * Identifier used to encode this strategy, when marshalled as part of a BloomFilter.
88 * negative values are reserved for any custom, stateful strategy we may define
89 * (e.g. any kind of strategy that would depend on user input).
104 * The strategy we employ to map an element T to {@code numHashFunctions} bit indexes.
106 private final Strategy strategy; field in BloomFilter
112 Strategy strategy) { in BloomFilter() argument
120 this.strategy = checkNotNull(strategy); in BloomFilter()
130 return new BloomFilter<T>(bits.copy(), numHashFunctions, funnel, strategy); in copy()
[all …]
/external/mockito/src/main/java/org/mockito/internal/configuration/injection/
DMockInjectionStrategy.java12 * Injector strategy contract
17 * NOP Strategy that will always try the next strategy.
31 * Enqueue next injection strategy.
37 * @param strategy Queued strategy.
38 * @return The passed strategy instance to allow chaining.
40 public MockInjectionStrategy thenTry(MockInjectionStrategy strategy) {
42 nextStrategy.thenTry(strategy);
44 nextStrategy = strategy;
46 return strategy;
59 * The code takes care of calling the next strategy if available and if of course if required
/external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/IR/
DDomTreeUpdater.h31 explicit DomTreeUpdater(UpdateStrategy Strategy_) : Strategy(Strategy_) {} in DomTreeUpdater()
33 : DT(&DT_), Strategy(Strategy_) {} in DomTreeUpdater()
35 : DT(DT_), Strategy(Strategy_) {} in DomTreeUpdater()
37 : PDT(&PDT_), Strategy(Strategy_) {} in DomTreeUpdater()
39 : PDT(PDT_), Strategy(Strategy_) {} in DomTreeUpdater()
42 : DT(&DT_), PDT(&PDT_), Strategy(Strategy_) {} in DomTreeUpdater()
45 : DT(DT_), PDT(PDT_), Strategy(Strategy_) {} in DomTreeUpdater()
49 /// Returns true if the current strategy is Lazy.
50 bool isLazy() const { return Strategy == UpdateStrategy::Lazy; }; in isLazy()
52 /// Returns true if the current strategy is Eager.
[all …]
/external/archive-patcher/shared/src/test/java/com/google/archivepatcher/shared/
DJreDeflateParametersTest.java32 for (int strategy = 0; strategy <= 2; strategy++) { in testOf_AllValidValues()
34 JreDeflateParameters.of(level, strategy, nowrap); in testOf_AllValidValues()
40 private void assertIllegalArgumentException(int level, int strategy, boolean nowrap) { in assertIllegalArgumentException() argument
42 JreDeflateParameters.of(level, strategy, nowrap); in assertIllegalArgumentException()
55 assertIllegalArgumentException(1, -1, true); // Bad strategy (insane value < 0) in testOf_InvalidValues()
56 assertIllegalArgumentException(1, 3, true); // Bad strategy (valid in zlib, unsupported in JRE) in testOf_InvalidValues()
68 for (int strategy = 0; strategy <= 2; strategy++) { in testParseString()
70 JreDeflateParameters params = JreDeflateParameters.of(level, strategy, nowrap); in testParseString()
/external/mockito/src/test/java/org/mockitousage/misuse/
DSpyStubbingMisuseTest.java18 Strategy mfoo = mock(Strategy.class); in nestedWhenTest()
32 public class Strategy { class in SpyStubbingMisuseTest
40 Sampler(Strategy f) { in Sampler()
46 Strategy strategy; field in SpyStubbingMisuseTest.Producer
47 Producer(Strategy f) { in Producer()
48 strategy = f; in Producer()
51 return new Sampler(strategy); in produce()
/external/openssh/regress/unittests/test_helper/
Dfuzz.c61 int strategy; member
108 switch (fuzz->strategy) { in fuzz_fmt()
111 fuzz_ntop(fuzz->strategy), in fuzz_fmt()
116 fuzz_ntop(fuzz->strategy), in fuzz_fmt()
123 fuzz_ntop(fuzz->strategy), in fuzz_fmt()
128 fuzz_ntop(fuzz->strategy), in fuzz_fmt()
135 fuzz_ntop(fuzz->strategy), in fuzz_fmt()
140 fuzz_ntop(fuzz->strategy), in fuzz_fmt()
146 fuzz_ntop(fuzz->strategy), in fuzz_fmt()
263 FUZZ_DBG(("fuzz = %p, strategy = %s, o1 = %zu, o2 = %zu, slen = %zu", in fuzz_strategy_done()
[all …]
/external/archive-patcher/shared/src/main/java/com/google/archivepatcher/shared/
DDeflateCompressor.java25 * compression, the default strategy, and no-wrap by default along with a 32k read buffer and a 32k
36 * The compression strategy to use. Defaults to {@link Deflater#DEFAULT_STRATEGY}.
38 private int strategy = Deflater.DEFAULT_STRATEGY; field in DeflateCompressor
115 * Returns the strategy that will be used, from {@link Deflater}.
116 * @return the strategy
119 return strategy; in getStrategy()
123 * Sets the strategy that will be used. Valid values can be found in {@link Deflater}. Defaults to
125 * @param strategy the strategy to be used
127 public void setStrategy(int strategy) { in setStrategy() argument
128 if (deflater != null && strategy != this.strategy) { in setStrategy()
[all …]
DJreDeflateParameters.java20 * two of these are frequently encountered: (level 6, strategy 0, nowrap) and (level 9, strategy 0,
86 * The strategy used by the deflate compressor.
88 public final int strategy; field in JreDeflateParameters
98 * @param strategy the strategy for the deflate compressor
101 private JreDeflateParameters(int level, int strategy, boolean nowrap) { in JreDeflateParameters() argument
102 if (level < 1 || level > 9 || strategy < 0 || strategy > 2) { in JreDeflateParameters()
106 this.strategy = strategy; in JreDeflateParameters()
110 public static JreDeflateParameters of(int level, int strategy, boolean nowrap) { in of() argument
111 int id = (level * 100) + (strategy * 10) + (nowrap ? 1 : 0); in of()
228 return "level=" + level + ",strategy=" + strategy + ",nowrap=" + nowrap; in toString()
/external/desugar/java/com/google/devtools/build/android/desugar/runtime/
DThrowableExtension.java38 static final AbstractDesugaringStrategy STRATEGY; field in ThrowableExtension
53 AbstractDesugaringStrategy strategy;
58 strategy = new ReuseDesugaringStrategy();
60 strategy = new MimicDesugaringStrategy();
62 strategy = new NullDesugaringStrategy();
68 "An error has occured when initializing the try-with-resources desuguring strategy. "
69 + "The default strategy "
73 strategy = new NullDesugaringStrategy();
75 STRATEGY = strategy;
80 return STRATEGY; in getStrategy()
[all …]
/external/archive-patcher/generator/src/test/java/com/google/archivepatcher/generator/
DDefaultDeflateCompressionDivinerTest.java66 compressor.setStrategy(parameters.strategy); in deflate()
82 for (int strategy : new int[] {0, 1, 2}) { in testDivineDeflateParameters_AllValidSettings()
84 JreDeflateParameters trueParameters = JreDeflateParameters.of(level, strategy, nowrap); in testDivineDeflateParameters_AllValidSettings()
89 // TODO(andrewhayden) make *CERTAIN 100%( that strategy doesn't matter for level < 4. in testDivineDeflateParameters_AllValidSettings()
90 if (strategy == 1 && level <= 3) { in testDivineDeflateParameters_AllValidSettings()
91 // Strategy 1 produces identical output at levels 1, 2 and 3. in testDivineDeflateParameters_AllValidSettings()
95 } else if (strategy == 2) { in testDivineDeflateParameters_AllValidSettings()
96 // All levels are the same with strategy 2. in testDivineDeflateParameters_AllValidSettings()
99 Assert.assertEquals(strategy, divinedParameters.strategy); in testDivineDeflateParameters_AllValidSettings()
104 } // End of iteration on strategy in testDivineDeflateParameters_AllValidSettings()
[all …]
/external/skia/include/android/
DSkBitmapRegionDecoder.h23 enum Strategy { enum
29 * @param strategy Strategy used for scaling and subsetting
32 static SkBitmapRegionDecoder* Create(sk_sp<SkData>, Strategy strategy);
36 * @param strategy Strategy used for scaling and subsetting
40 SkStreamRewindable* stream, Strategy strategy);
/external/skqp/include/android/
DSkBitmapRegionDecoder.h23 enum Strategy { enum
29 * @param strategy Strategy used for scaling and subsetting
32 static SkBitmapRegionDecoder* Create(sk_sp<SkData>, Strategy strategy);
36 * @param strategy Strategy used for scaling and subsetting
40 SkStreamRewindable* stream, Strategy strategy);

12345678910>>...48