Home
last modified time | relevance | path

Searched refs:strategy (Results 1 – 25 of 401) sorted by relevance

12345678910>>...17

/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()
152 if(strategy_count == 1 && strategy[0].selected) { in gzip_options_post()
154 strategy[0].selected = 0; in gzip_options_post()
190 for(i = 0; strategy[i].name; i++) in gzip_dump_options()
[all …]
Dgzip_wrapper.h42 (s)->strategy = inswap_le16((s)->strategy); \
55 short strategy; member
58 struct strategy { struct
60 int strategy; argument
65 int strategy; member
73 struct gzip_strategy strategy[0]; member
/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 …]
Dkeras_multi_worker_test.py115 def _clone_and_build_model(model, strategy): argument
117 with strategy.scope():
253 def _run_standalone_client(test_obj, strategy, cluster_spec): argument
255 with strategy.scope():
258 def worker_fn(strategy): argument
263 with strategy.scope():
265 model = _clone_and_build_model(orig_model, strategy)
284 strategy,
326 strategy = get_strategy_object(strategy_cls)
328 _run_standalone_client(self, strategy, self._cluster_spec)
[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/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/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/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/guava/guava/src/com/google/common/hash/
DBloomFilter.java106 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()
138 return strategy.mightContain(object, funnel, numHashFunctions, bits); in mightContain()
164 return strategy.put(object, funnel, numHashFunctions, bits); in put()
210 (this.strategy.equals(that.strategy)) && in isCompatible()
233 checkArgument(this.strategy.equals(that.strategy), in putAll()
235 this.strategy, that.strategy); in putAll()
252 && this.strategy.equals(that.strategy); in equals()
[all …]
/external/objenesis/main/src/main/java/org/objenesis/
DObjenesisBase.java19 import org.objenesis.strategy.InstantiatorStrategy;
32 protected final InstantiatorStrategy strategy; field in ObjenesisBase
42 public ObjenesisBase(InstantiatorStrategy strategy) { in ObjenesisBase() argument
43 this(strategy, true); in ObjenesisBase()
52 public ObjenesisBase(InstantiatorStrategy strategy, boolean useCache) { in ObjenesisBase() argument
53 if(strategy == null) { in ObjenesisBase()
56 this.strategy = strategy; in ObjenesisBase()
62 return getClass().getName() + " using " + strategy.getClass().getName() in toString()
90 return strategy.newInstantiatorOf(clazz); in getInstantiatorOf()
94 ObjectInstantiator<?> newInstantiator = strategy.newInstantiatorOf(clazz); in getInstantiatorOf()
/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()
68 for (int strategy = 0; strategy <= 2; strategy++) { in testParseString()
70 JreDeflateParameters params = JreDeflateParameters.of(level, strategy, nowrap); in testParseString()
/external/tensorflow/tensorflow/python/distribute/
Ddistribute_coordinator.py113 strategy, argument
137 self._strategy = strategy
327 strategy, argument
337 strategy = copy.deepcopy(strategy)
341 if strategy:
342 strategy.configure(session_config)
344 assert strategy
345 strategy.configure(session_config, cluster_spec, task_type, task_id)
348 strategy,
358 return worker_fn(strategy)
[all …]
Ddistribute_lib.py104 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
118 (strategy,))
122 (context.strategy, strategy))
132 if context.strategy is replica_ctx.strategy:
137 (context.strategy, replica_ctx.strategy))
140 def _require_strategy_scope_strategy(strategy): argument
143 if context.strategy is strategy: return
[all …]
Ddistribution_strategy_context.py40 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)
191 return _get_per_thread_mode().strategy
206 return (per_thread_mode.strategy, per_thread_mode.replica_context)
Destimator_training.py221 def _worker_fn(strategy): argument
225 local_estimator._config._train_distribute = strategy
229 local_estimator._train_distribution = strategy
254 def _eval_fn(strategy): argument
258 local_estimator._config._eval_distribute = strategy
262 local_estimator._eval_distribution = strategy
320 def _worker_fn(strategy): argument
323 local_estimator._config._train_distribute = strategy
327 local_estimator._train_distribution = strategy
333 train_distributed_fn(local_estimator, strategy, chief_hooks)
[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/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()
264 fuzz, fuzz_ntop(fuzz->strategy), fuzz->o1, fuzz->o2, fuzz->slen)); in fuzz_strategy_done()
[all …]
/external/archive-patcher/shared/src/main/java/com/google/archivepatcher/shared/
DDeflateCompressor.java38 private int strategy = Deflater.DEFAULT_STRATEGY; field in DeflateCompressor
119 return strategy; in getStrategy()
127 public void setStrategy(int strategy) { in setStrategy() argument
128 if (deflater != null && strategy != this.strategy) { in setStrategy()
130 deflater.setStrategy(strategy); in setStrategy()
132 this.strategy = strategy; in setStrategy()
203 result.setStrategy(strategy); in createOrResetDeflater()
DJreDeflateParameters.java88 public final int strategy; field in JreDeflateParameters
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/tensorflow/tensorflow/python/keras/engine/
Ddistributed_training_utils.py394 def is_tpu_strategy(strategy): argument
396 return strategy is not None and strategy.__class__.__name__ == 'TPUStrategy'
566 strategy = model._distribution_strategy
568 inputs = flatten_perdevice_values(strategy, inputs)
569 targets = flatten_perdevice_values(strategy, targets)
580 None for _ in range(len(model.outputs) * strategy.num_replicas_in_sync)
670 def _build_distributed_network(model, strategy, mode, inputs=None, argument
673 with K.get_graph().as_default(), strategy.scope():
674 distributed_model = strategy.extended.call_for_each_replica(
722 def clone_model_on_replicas(model, strategy, mode, inputs=None, targets=None): argument
[all …]
/external/tensorflow/tensorflow/python/eager/
Dtape.py64 strategy, context = (
67 variables = [strategy.extended.value_container(variable)]
69 variables = strategy.unwrap(variable)
80 strategy, context = (
83 variables = [strategy.extended.value_container(variable)]
85 variables = strategy.unwrap(variable)
98 strategy, context = (
102 accessed = [strategy.extended.value_container(variable)
107 accessed.extend(strategy.unwrap(variable))
/external/autotest/client/common_lib/hosts/
Drepair_unittest.py997 strategy = hosts.RepairStrategy(verify_data, [], 'unittest')
1000 strategy._verify_root._dependency_list,
1016 strategy = hosts.RepairStrategy(verify_data, [], 'unittest')
1020 strategy._verify_root._dependency_list, [parent])
1041 strategy = hosts.RepairStrategy(verify_data, [], 'unittest')
1046 strategy._verify_root._dependency_list,
1073 strategy = hosts.RepairStrategy(verify_data, [], 'unittest')
1078 strategy._verify_root._dependency_list,
1097 strategy = hosts.RepairStrategy(verify_data, [], 'unittest')
1103 strategy.verify(self._fake_host, silent)
[all …]
/external/curl/lib/
Ddict.c132 char *strategy = NULL; in dict_do() local
157 strategy = strchr(database, ':'); in dict_do()
158 if(strategy) { in dict_do()
159 *strategy++ = (char)0; in dict_do()
160 nthdef = strchr(strategy, ':'); in dict_do()
175 if((strategy == NULL) || (*strategy == (char)0)) { in dict_do()
176 strategy = (char *)"."; in dict_do()
192 strategy, in dict_do()
/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()
90 if (strategy == 1 && level <= 3) { in testDivineDeflateParameters_AllValidSettings()
95 } else if (strategy == 2) { in testDivineDeflateParameters_AllValidSettings()
99 Assert.assertEquals(strategy, divinedParameters.strategy); in testDivineDeflateParameters_AllValidSettings()
126 Assert.assertEquals(0, actual.divinedParameters.strategy); in testDivineDeflateParameters_File()
/external/ltp/testcases/kernel/controllers/io-throttle/
Drun_io_throttle_test.sh52 for strategy in 0 1; do
66 /bin/echo $dev:$limit:$strategy:$limit > \
82 if [ $strategy -eq 0 ]; then
107 echo "ERROR: error code $ret during test $tasks.$strategy.$i. Exiting test."
115 echo "TPASS Block device I/O bandwidth controller: test $tasks.$strategy.$i PASSED";
117 echo "TFAIL Block device I/O bandwidth controller: test $tasks.$strategy.$i FAILED";

12345678910>>...17