Home
last modified time | relevance | path

Searched refs:default_value (Results 1 – 25 of 373) sorted by relevance

12345678910>>...15

/external/protobuf/src/google/protobuf/
Darenastring.h57 inline void Set(const ::std::string* default_value, in Set()
59 if (ptr_ == default_value) { in Set()
71 inline ::std::string* Mutable(const ::std::string* default_value, in Mutable()
73 if (ptr_ == default_value) { in Mutable()
74 CreateInstance(arena, default_value); in Mutable()
83 inline ::std::string* Release(const ::std::string* default_value, in Release()
85 if (ptr_ == default_value) { in Release()
95 ptr_ = const_cast< ::std::string* >(default_value); in Release()
104 inline ::std::string* UnsafeArenaRelease(const ::std::string* default_value, in UnsafeArenaRelease()
106 if (ptr_ == default_value) { in UnsafeArenaRelease()
[all …]
Darenastring_unittest.cc60 ::std::string default_value = "default"; in TEST()
61 field.UnsafeSetDefault(&default_value); in TEST()
62 EXPECT_EQ(string("default"), field.Get(&default_value)); in TEST()
63 field.Set(&default_value, WrapString("Test short"), NULL); in TEST()
64 EXPECT_EQ(string("Test short"), field.Get(&default_value)); in TEST()
65 field.Set(&default_value, WrapString("Test long long long long value"), NULL); in TEST()
66 EXPECT_EQ(string("Test long long long long value"), field.Get(&default_value)); in TEST()
67 field.Set(&default_value, string(""), NULL); in TEST()
68 field.Destroy(&default_value, NULL); in TEST()
71 field2.UnsafeSetDefault(&default_value); in TEST()
[all …]
/external/tensorflow/tensorflow/python/feature_column/
Dutils.py68 def check_default_value(shape, default_value, dtype, key): argument
94 if default_value is None:
97 if isinstance(default_value, int):
98 return _create_tuple(shape, default_value)
100 if isinstance(default_value, float) and dtype.is_floating:
101 return _create_tuple(shape, default_value)
103 if callable(getattr(default_value, 'tolist', None)): # Handles numpy arrays
104 default_value = default_value.tolist()
106 if nest.is_sequence(default_value):
107 if not _is_shape_and_default_value_compatible(default_value, shape):
[all …]
Dsequence_feature_column.py202 key, num_buckets, default_value=None): argument
246 default_value=default_value))
298 default_value=None, dtype=dtypes.string): argument
356 default_value=default_value,
362 key, vocabulary_list, dtype=None, default_value=-1, num_oov_buckets=0): argument
418 default_value=default_value,
426 default_value=0., argument
480 default_value=default_value,
553 sp_tensor, default_value=self.default_value)
/external/tensorflow/tensorflow/lite/toco/
Dtoco_cmdline_flags.cc38 parsed_flags.input_file.default_value(), in ParseTocoFlagsFromCommandLineFlags()
43 parsed_flags.savedmodel_directory.default_value(), in ParseTocoFlagsFromCommandLineFlags()
46 parsed_flags.output_file.default_value(), in ParseTocoFlagsFromCommandLineFlags()
50 parsed_flags.input_format.default_value(), in ParseTocoFlagsFromCommandLineFlags()
53 parsed_flags.output_format.default_value(), in ParseTocoFlagsFromCommandLineFlags()
57 parsed_flags.savedmodel_tagset.default_value(), in ParseTocoFlagsFromCommandLineFlags()
62 parsed_flags.default_ranges_min.default_value(), in ParseTocoFlagsFromCommandLineFlags()
66 parsed_flags.default_ranges_max.default_value(), in ParseTocoFlagsFromCommandLineFlags()
71 parsed_flags.default_int16_ranges_min.default_value(), in ParseTocoFlagsFromCommandLineFlags()
76 parsed_flags.default_int16_ranges_max.default_value(), in ParseTocoFlagsFromCommandLineFlags()
[all …]
Dmodel_cmdline_flags.cc45 parsed_flags.input_array.default_value(), in ParseModelFlagsFromCommandLineFlags()
50 parsed_flags.input_arrays.default_value(), in ParseModelFlagsFromCommandLineFlags()
54 parsed_flags.output_array.default_value(), in ParseModelFlagsFromCommandLineFlags()
60 parsed_flags.output_arrays.default_value(), in ParseModelFlagsFromCommandLineFlags()
65 parsed_flags.input_shape.default_value(), in ParseModelFlagsFromCommandLineFlags()
71 parsed_flags.input_shapes.default_value(), in ParseModelFlagsFromCommandLineFlags()
76 parsed_flags.batch_size.default_value(), in ParseModelFlagsFromCommandLineFlags()
82 parsed_flags.input_data_type.default_value(), in ParseModelFlagsFromCommandLineFlags()
88 parsed_flags.input_data_types.default_value(), in ParseModelFlagsFromCommandLineFlags()
94 parsed_flags.mean_value.default_value(), in ParseModelFlagsFromCommandLineFlags()
[all …]
/external/tensorflow/tensorflow/contrib/lookup/
Dlookup_ops.py50 default_value=-1, argument
54 vocabulary_file, num_oov_buckets, vocab_size, default_value, hasher_spec,
61 default_value=-1, argument
69 mapping, num_oov_buckets, default_value, hasher_spec, name=scope)
74 default_value=-1, argument
134 default_value=default_value,
144 def string_to_index(tensor, mapping, default_value=-1, name=None): argument
186 mapping=mapping, default_value=default_value, name=name)
190 def index_to_string_table_from_tensor(mapping, default_value="UNK", name=None): argument
239 vocabulary_list=mapping, default_value=default_value, name=name)
[all …]
Dlookup_ops_test.py374 default_value = -42
378 vocabulary_file=vocabulary_file, default_value=default_value)
383 self.assertAllEqual((1, 2, default_value), ids.eval())
480 table = lookup.HashTable(init, default_value=-1)
487 table = lookup.HashTable(init, default_value=-1)
494 table = lookup.HashTable(init, default_value=-1)
542 default_value = -42
545 mapping=["brain", "salad", "surgery"], default_value=default_value)
550 self.assertAllEqual((1, 2, default_value), ids.eval())
607 default_value = -42
[all …]
/external/tensorflow/tensorflow/python/ops/
Dparsing_ops.py149 def __new__(cls, shape, dtype, default_value=None): argument
151 cls, shape, dtype, default_value)
184 def __new__(cls, shape, dtype, allow_missing=False, default_value=None): argument
186 cls, shape, dtype, allow_missing, default_value)
281 if feature.default_value is not None:
282 dense_defaults[key] = feature.default_value
296 if feature.default_value is not None:
297 dense_defaults[key] = feature.default_value
360 feature.default_value)
949 default_value = dense_defaults.get(key)
[all …]
/external/tensorflow/tensorflow/core/ops/
Dops.pbtxt6 default_value {
13 default_value {
310 default_value {
317 default_value {
394 default_value {
401 default_value {
502 default_value {
530 default_value {
558 default_value {
586 default_value {
[all …]
/external/grpc-grpc/test/http2_test/
Dmessages_pb2.py60 has_default_value=False, default_value=False,
91 has_default_value=False, default_value=0,
98 has_default_value=False, default_value=_b(""),
129 has_default_value=False, default_value=0,
136 has_default_value=False, default_value=_b("").decode('utf-8'),
167 has_default_value=False, default_value=0,
174 has_default_value=False, default_value=0,
181 has_default_value=False, default_value=None,
188 has_default_value=False, default_value=False,
195 has_default_value=False, default_value=False,
[all …]
/external/python/cpython3/Modules/clinic/
Dunicodedata.c.h20 PyObject *default_value);
27 PyObject *default_value = NULL; in unicodedata_UCD_decimal() local
30 &chr, &default_value)) { in unicodedata_UCD_decimal()
33 return_value = unicodedata_UCD_decimal_impl(self, chr, default_value); in unicodedata_UCD_decimal()
53 unicodedata_UCD_digit_impl(PyObject *self, int chr, PyObject *default_value);
60 PyObject *default_value = NULL; in unicodedata_UCD_digit() local
63 &chr, &default_value)) { in unicodedata_UCD_digit()
66 return_value = unicodedata_UCD_digit_impl(self, chr, default_value); in unicodedata_UCD_digit()
87 PyObject *default_value);
94 PyObject *default_value = NULL; in unicodedata_UCD_numeric() local
[all …]
D_dbmmodule.c.h52 Py_ssize_clean_t key_length, PyObject *default_value);
60 PyObject *default_value = Py_None; in _dbm_dbm_get() local
63 &key, &key_length, &default_value)) { in _dbm_dbm_get()
66 return_value = _dbm_dbm_get_impl(self, key, key_length, default_value); in _dbm_dbm_get()
86 PyObject *default_value);
94 PyObject *default_value = NULL; in _dbm_dbm_setdefault() local
97 &key, &key_length, &default_value)) { in _dbm_dbm_setdefault()
100 return_value = _dbm_dbm_setdefault_impl(self, key, key_length, default_value); in _dbm_dbm_setdefault()
/external/libbrillo/brillo/
Dflag_helper.cc22 const char* default_value, in Flag() argument
26 default_value_(default_value), in Flag()
42 const char* default_value, in BoolFlag() argument
45 : Flag(name, default_value, help, visible), in BoolFlag()
73 const char* default_value, in Int32Flag() argument
76 : Flag(name, default_value, help, visible), value_(value) { in Int32Flag()
89 const char* default_value, in Int64Flag() argument
92 : Flag(name, default_value, help, visible), value_(value) { in Int64Flag()
105 const char* default_value, in UInt64Flag() argument
108 : Flag(name, default_value, help, visible), value_(value) { in UInt64Flag()
[all …]
/external/ltp/testcases/kernel/device-drivers/v4l/user_space/
Dtest_VIDIOC_QUERYCTRL.c122 queryctrl.default_value); in test_VIDIOC_QUERYCTRL()
123 CU_ASSERT(queryctrl.default_value <= in test_VIDIOC_QUERYCTRL()
131 CU_ASSERT((queryctrl.default_value == 0) in test_VIDIOC_QUERYCTRL()
132 || (queryctrl.default_value == 1)); in test_VIDIOC_QUERYCTRL()
138 queryctrl.default_value); in test_VIDIOC_QUERYCTRL()
141 queryctrl.default_value); in test_VIDIOC_QUERYCTRL()
142 CU_ASSERT(queryctrl.default_value <= in test_VIDIOC_QUERYCTRL()
150 CU_ASSERT_EQUAL(queryctrl.default_value, 0); in test_VIDIOC_QUERYCTRL()
162 CU_ASSERT_EQUAL(queryctrl.default_value, 0); in test_VIDIOC_QUERYCTRL()
169 CU_ASSERT_EQUAL(queryctrl.default_value, 0); in test_VIDIOC_QUERYCTRL()
[all …]
/external/tensorflow/tensorflow/contrib/layers/python/layers/
Dfeature_column.py659 default_value=self.lookup_config.default_value,
666 column_name, keys, default_value=-1, combiner="sum", dtype=dtypes.string): argument
694 keys=keys, vocab_size=len(keys), default_value=default_value),
715 default_value=self.lookup_config.default_value,
724 default_value=-1, argument
768 default_value=default_value),
1010 default_value=-1)
1700 default_value=self.default_value)}
1754 default_value=None, argument
1797 if default_value is None and not is_sparse:
[all …]
Dfeature_column_test.py470 self.assertTrue(c.default_value is None)
472 c5 = fc._real_valued_var_len_column("c5", default_value=2)
473 self.assertEqual(c5.default_value, 2)
476 self.assertEqual(d4.default_value, None)
480 fc._real_valued_var_len_column("g5", default_value=[2., 3.])
490 "rvc", default_value=0, is_sparse=False)
497 default_value=0.0)
501 "rvc", dtype=dtypes.int32, default_value=0, is_sparse=True)
510 "rvc", dtype=dtypes.string, default_value="", is_sparse=True)
518 self.assertTrue(b.default_value is None)
[all …]
/external/tensorflow/tensorflow/contrib/feature_column/python/feature_column/
Dsequence_feature_column.py187 key, num_buckets, default_value=None): argument
227 key=key, num_buckets=num_buckets, default_value=default_value))
273 default_value=None, dtype=dtypes.string): argument
329 default_value=default_value,
334 key, vocabulary_list, dtype=None, default_value=-1, num_oov_buckets=0): argument
388 default_value=default_value,
395 default_value=0., argument
447 default_value=default_value,
497 sp_tensor, default_value=self.default_value)
/external/python/cpython3/Objects/clinic/
Ddictobject.c.h54 dict_get_impl(PyDictObject *self, PyObject *key, PyObject *default_value);
61 PyObject *default_value = Py_None; in dict_get() local
65 &key, &default_value)) { in dict_get()
68 return_value = dict_get_impl(self, key, default_value); in dict_get()
87 PyObject *default_value);
94 PyObject *default_value = Py_None; in dict_setdefault() local
98 &key, &default_value)) { in dict_setdefault()
101 return_value = dict_setdefault_impl(self, key, default_value); in dict_setdefault()
/external/tensorflow/tensorflow/core/ops/compat/
Dops_history.v1.pbtxt6 default_value {
13 default_value {
865 default_value {
872 default_value {
1125 default_value {
1132 default_value {
1318 default_value {
1361 default_value {
1404 default_value {
1432 default_value {
[all …]
Dops_history.v2.pbtxt6 default_value {
13 default_value {
865 default_value {
872 default_value {
1125 default_value {
1132 default_value {
1318 default_value {
1361 default_value {
1404 default_value {
1432 default_value {
[all …]
/external/libtextclassifier/lang_id/common/fel/
Dfeature-extractor.cc65 const string &default_value) const { in GetParameter()
72 return default_value; in GetParameter()
80 int default_value) const { in GetIntParameter()
84 return default_value; in GetIntParameter()
90 return default_value; in GetIntParameter()
96 bool default_value) const { in GetBoolParameter()
98 if (value.empty()) return default_value; in GetBoolParameter()
103 return default_value; in GetBoolParameter()
/external/tensorflow/tensorflow/core/util/rpc/
Drpc_factory.cc23 bool GetEnvVar(const char* key, const string& default_value, string* value) { in GetEnvVar() argument
26 *value = default_value; in GetEnvVar()
34 bool GetEnvVar(const char* key, const int64& default_value, int64* value) { in GetEnvVar() argument
37 *value = default_value; in GetEnvVar()
44 bool GetEnvVar(const char* key, const uint64& default_value, uint64* value) { in GetEnvVar() argument
47 *value = default_value; in GetEnvVar()
/external/python/cpython3/Python/clinic/
Dcontext.c.h15 PyObject *default_value);
22 PyObject *default_value = Py_None; in _contextvars_Context_get() local
26 &key, &default_value)) { in _contextvars_Context_get()
29 return_value = _contextvars_Context_get_impl(self, key, default_value); in _contextvars_Context_get()
112 _contextvars_ContextVar_get_impl(PyContextVar *self, PyObject *default_value);
118 PyObject *default_value = NULL; in _contextvars_ContextVar_get() local
122 &default_value)) { in _contextvars_ContextVar_get()
125 return_value = _contextvars_ContextVar_get_impl(self, default_value); in _contextvars_ContextVar_get()
/external/harfbuzz_ng/src/
Dhb-ot-var-fvar-table.hh123 info->default_value = axis.defaultValue / 65536.; in get_axis_deprecated()
125 info->min_value = MIN<float> (info->default_value, axis.minValue / 65536.); in get_axis_deprecated()
126 info->max_value = MAX<float> (info->default_value, axis.maxValue / 65536.); in get_axis_deprecated()
137 info->default_value = axis.defaultValue / 65536.; in get_axis_info()
139 info->min_value = MIN<float> (info->default_value, axis.minValue / 65536.); in get_axis_info()
140 info->max_value = MAX<float> (info->default_value, axis.maxValue / 65536.); in get_axis_info()
228 if (v == axis.default_value) in normalize_axis_value()
230 else if (v < axis.default_value) in normalize_axis_value()
231 v = (v - axis.default_value) / (axis.default_value - axis.min_value); in normalize_axis_value()
233 v = (v - axis.default_value) / (axis.max_value - axis.default_value); in normalize_axis_value()

12345678910>>...15