Home
last modified time | relevance | path

Searched refs:cardinality (Results 1 – 25 of 158) sorted by relevance

1234567

/external/grpc-grpc/src/python/grpcio/grpc/framework/interfaces/face/
Dutilities.py19 from grpc.framework.common import cardinality
52 return _MethodImplementation(cardinality.Cardinality.UNARY_UNARY,
68 return _MethodImplementation(cardinality.Cardinality.UNARY_STREAM,
84 return _MethodImplementation(cardinality.Cardinality.STREAM_UNARY,
100 return _MethodImplementation(cardinality.Cardinality.STREAM_STREAM,
116 return _MethodImplementation(cardinality.Cardinality.UNARY_UNARY,
132 return _MethodImplementation(cardinality.Cardinality.UNARY_STREAM,
149 return _MethodImplementation(cardinality.Cardinality.STREAM_UNARY,
166 return _MethodImplementation(cardinality.Cardinality.STREAM_STREAM,
/external/python/parse_type/parse_type/
Dcardinality.py96 def with_cardinality(cls, cardinality, converter, pattern=None, argument
106 if cardinality is Cardinality.one:
109 builder_func = getattr(cls, "with_%s" % cardinality.name)
110 if cardinality is Cardinality.zero_or_one:
124 cardinality = Cardinality.zero_or_one
127 optional_pattern = cardinality.make_pattern(pattern)
128 group_count = cardinality.compute_group_count(pattern)
151 cardinality = Cardinality.zero_or_more
154 many0_pattern = cardinality.make_pattern(pattern, listsep)
155 group_count = cardinality.compute_group_count(pattern)
[all …]
Dcardinality_field.py13 from parse_type.cardinality import Cardinality, TypeBuilder
57 cardinality = cls.from_char_map[type_name[-1]]
60 cardinality = Cardinality.one
62 return (basename, cardinality)
65 def make_type(cls, basename, cardinality): argument
72 if cardinality is Cardinality.one:
76 type_name = "%s%s" % (basename, cls.to_char_map[cardinality])
123 primary_name, cardinality = CardinalityField.split_type(type_name)
131 type_variant = TypeBuilder.with_cardinality(cardinality,
/external/tensorflow/tensorflow/python/data/experimental/kernel_tests/
Dassert_cardinality_test.py22 from tensorflow.python.data.experimental.ops import cardinality
37 self.evaluate(cardinality.cardinality(dataset)), cardinality.UNKNOWN)
39 dataset = dataset.apply(cardinality.assert_cardinality(10))
40 self.assertEqual(self.evaluate(cardinality.cardinality(dataset)), 10)
58 asserted_cardinality=cardinality.INFINITE,
63 asserted_cardinality=cardinality.INFINITE,
80 cardinality.assert_cardinality(asserted_cardinality))
/external/clang/utils/ABITest/
DTypeGen.py207 assert 0 <= N < self.cardinality
221 self.cardinality = len(self.types)
257 self.cardinality = 0
259 self.cardinality += num_combinations(len(self.values), num)
290 self.cardinality = self.typeGen.cardinality
303 self.cardinality = len(self.sizes)*self.typeGen.cardinality
306 S,T = getNthPairBounded(N, len(self.sizes), self.typeGen.cardinality)
317 self.cardinality = len(self.sizes)*self.typeGen.cardinality
320 S,T = getNthPairBounded(N, len(self.sizes), self.typeGen.cardinality)
334 self.cardinality = self.W * self.typeGen.cardinality
[all …]
/external/llvm-project/clang/utils/ABITest/
DTypeGen.py209 assert 0 <= N < self.cardinality
223 self.cardinality = len(self.types)
259 self.cardinality = 0
261 self.cardinality += num_combinations(len(self.values), num)
292 self.cardinality = self.typeGen.cardinality
305 self.cardinality = len(self.sizes)*self.typeGen.cardinality
308 S,T = getNthPairBounded(N, len(self.sizes), self.typeGen.cardinality)
319 self.cardinality = len(self.sizes)*self.typeGen.cardinality
322 S,T = getNthPairBounded(N, len(self.sizes), self.typeGen.cardinality)
336 self.cardinality = self.W * self.typeGen.cardinality
[all …]
/external/tensorflow/tensorflow/core/api_def/base_api/
Dapi_def_DatasetCardinality.pbtxt7 A variant tensor representing the dataset to return cardinality for.
11 name: "cardinality"
13 The cardinality of `input_dataset`. Named constants are used to represent
14 infinite and unknown cardinality.
17 summary: "Returns the cardinality of `input_dataset`."
19 Returns the cardinality of `input_dataset`.
Dapi_def_ExperimentalDatasetCardinality.pbtxt7 A variant tensor representing the dataset to return cardinality for.
11 name: "cardinality"
13 The cardinality of `input_dataset`. Named constants are used to represent
14 infinite and unknown cardinality.
17 summary: "Returns the cardinality of `input_dataset`."
19 Returns the cardinality of `input_dataset`.
/external/grpc-grpc/src/python/grpcio/grpc/beta/
D_server_adaptations.py23 from grpc.framework.common import cardinality
260 if implementation.cardinality is cardinality.Cardinality.UNARY_UNARY:
266 elif implementation.cardinality is cardinality.Cardinality.UNARY_STREAM:
272 elif implementation.cardinality is cardinality.Cardinality.STREAM_UNARY:
278 elif implementation.cardinality is cardinality.Cardinality.STREAM_STREAM:
285 if implementation.cardinality is cardinality.Cardinality.UNARY_UNARY:
291 elif implementation.cardinality is cardinality.Cardinality.UNARY_STREAM:
297 elif implementation.cardinality is cardinality.Cardinality.STREAM_UNARY:
303 elif implementation.cardinality is cardinality.Cardinality.STREAM_STREAM:
/external/cpuinfo/tools/
Dgpu-dump.c150 int32_t cardinality; member
162 .cardinality = COUNT_OF(egl_enum_caveat),
200 .cardinality = COUNT_OF(egl_enum_boolean),
206 .cardinality = COUNT_OF(egl_enum_boolean),
256 .cardinality = -(int32_t) COUNT_OF(egl_enum_surface_type),
262 .cardinality = -(int32_t) COUNT_OF(egl_enum_renderable_type),
268 .cardinality = -(int32_t) COUNT_OF(egl_enum_conformant),
274 .cardinality = COUNT_OF(egl_enum_transparency),
280 .cardinality = COUNT_OF(egl_enum_color_buffer),
337 if (egl_config_attributes[n].cardinality == 0) { in report_gles_attributes()
[all …]
/external/grpc-grpc/src/python/grpcio/grpc/framework/common/
DBUILD.bazel8 ":cardinality",
14 name = "cardinality",
15 srcs = ["cardinality.py"],
/external/python/parse_type/tests/
Dtest_cardinality_field.py40 for cardinality, char in CardinalityField.to_char_map.items():
41 self.assertEqual(cardinality, CardinalityField.from_char_map[char])
42 for char, cardinality in CardinalityField.from_char_map.items():
43 self.assertEqual(char, CardinalityField.to_char_map[cardinality])
124 primary_name, cardinality = CardinalityField.split_type(type_name)
125 type_name2 = CardinalityField.make_type(primary_name, cardinality)
130 primary_name, cardinality = CardinalityField.split_type(type_name)
131 type_name2 = CardinalityField.make_type(primary_name, cardinality)
134 self.assertEqual(cardinality, Cardinality.one)
/external/grpc-grpc/src/python/grpcio_tests/tests/unit/beta/
D_beta_features_test.py21 from grpc.framework.common import cardinality
155 _UNARY_UNARY: cardinality.Cardinality.UNARY_UNARY,
156 _UNARY_STREAM: cardinality.Cardinality.UNARY_STREAM,
157 _STREAM_UNARY: cardinality.Cardinality.STREAM_UNARY,
158 _STREAM_STREAM: cardinality.Cardinality.STREAM_STREAM,
286 _UNARY_UNARY: cardinality.Cardinality.UNARY_UNARY,
287 _UNARY_STREAM: cardinality.Cardinality.UNARY_STREAM,
288 _STREAM_UNARY: cardinality.Cardinality.STREAM_UNARY,
289 _STREAM_STREAM: cardinality.Cardinality.STREAM_STREAM,
/external/tensorflow/tensorflow/core/kernels/data/experimental/
Dassert_cardinality_dataset_op.cc41 Dataset(OpKernelContext* ctx, const DatasetBase* input, int64 cardinality, in Dataset() argument
46 cardinality_(cardinality), in Dataset()
178 int64 cardinality; in MakeDataset() local
180 ParseScalarArgument<int64>(ctx, kCardinality, &cardinality)); in MakeDataset()
181 *output = new Dataset(ctx, input, cardinality, output_types_, output_shapes_); in MakeDataset()
Dchoose_fastest_dataset_op.cc95 int64 cardinality = inputs[0]->Cardinality(); in MakeDataset() local
97 if (cardinality == kUnknownCardinality) { in MakeDataset()
98 cardinality = inputs[i]->Cardinality(); in MakeDataset()
102 inputs[i]->Cardinality() == cardinality || in MakeDataset()
108 ", while all prior inputs have cardinality: ", cardinality, in MakeDataset()
113 cardinality, num_experiments_); in MakeDataset()
122 int64 cardinality, int64 num_experiments) in Dataset() argument
127 cardinality_(cardinality), in Dataset()
/external/icing/icing/schema/
Dschema-util.cc42 if (old_property.cardinality() < new_property.cardinality()) { in IsCardinalityCompatible()
47 PropertyConfigProto::Cardinality::Code_Name(old_property.cardinality()), in IsCardinalityCompatible()
50 new_property.cardinality())); in IsCardinalityCompatible()
301 ICING_RETURN_IF_ERROR(ValidateCardinality(property_config.cardinality(), in Validate()
362 PropertyConfigProto::Cardinality::Code cardinality, in ValidateCardinality() argument
366 if (cardinality == PropertyConfigProto::Cardinality::UNKNOWN) { in ValidateCardinality()
415 if (property_config.cardinality() == in ParsePropertyConfigs()
469 if (old_property_config.cardinality() == in ComputeCompatibilityDelta()
/external/flatbuffers/tests/MyGame/Example/
Dmonster_test_grpc_fb.py90 from grpc.framework.common import cardinality
233 'GetMaxHitPoint': cardinality.Cardinality.STREAM_UNARY,
234 'GetMinMaxHitPoints': cardinality.Cardinality.UNARY_UNARY,
235 'Retrieve': cardinality.Cardinality.UNARY_STREAM,
236 'Store': cardinality.Cardinality.UNARY_UNARY,
/external/python/parse_type/
DREADME.rst26 * build a type converter with a cardinality constraint (0..1, 0..*, 1..*)
27 from the type converter with cardinality=1.
48 *cardinality field*
49 A naming convention for related types that differ in cardinality.
50 A cardinality field is a type name suffix in the format of a field.
108 with cardinality "1..* = 1+" (many) from the type converter for a "Number".
112 # -- USE CASE: Create new type converter with a cardinality constraint.
124 Create an type converter for an "OptionalNumbers" with cardinality "0..1 = ?"
129 # -- USE CASE: Create new type converter with cardinality constraint.
257 a CardinalityField by using the primary type converter for cardinality=1
[all …]
/external/tensorflow/tensorflow/python/keras/utils/
Dtf_utils.py25 from tensorflow.python.data.experimental.ops import cardinality
455 cardinality.cardinality(dataset), cardinality.INFINITE)
457 dataset_size = K.get_session().run(cardinality.cardinality(dataset))
458 return dataset_size == cardinality.INFINITE
/external/cldr/tools/java/org/unicode/cldr/draft/
DIdentifierInfo.java103 if (temp.cardinality() == 0) { in setIdentifier()
106 } else if (temp.cardinality() == 1) { in setIdentifier()
158 if (temp.cardinality() == 0) { in isMultiScript()
164 if (temp.cardinality() != 0 && setOfScriptSets.add(temp)) { in isMultiScript()
184 return temp.cardinality() != 0; in isMultiScript()
255 …final int cardinalityPlus = temp.cardinality() + (commonAmongAlternates.isEmpty() ? scriptSetSet.s… in getRestrictionLevel()
/external/emma/core/java12/com/vladium/util/args/
DOptsParser.java230 final int [] cardinality = optdef.getValueCardinality (); in parse() local
232 if (cardinality [1] < 1) in parse()
248 final int [] cardinality = optdef.getValueCardinality (); in parse() local
252 if (valueCount < cardinality [0]) in parse()
254 …age ("option \'" + opt.getName () + "\' does not accept fewer than " + cardinality [0] + " value(s… in parse()
263 if (valueCount < cardinality [1]) in parse()
316 final int [] cardinality = optdef.getValueCardinality (); in parse() local
318 if (valueCount < cardinality [0]) in parse()
320 …age ("option \'" + opt.getName () + "\' does not accept fewer than " + cardinality [0] + " value(s… in parse()
442 final int [] cardinality = optdef.getValueCardinality (); in isOpt() local
[all …]
/external/tensorflow/tensorflow/python/data/experimental/
D__init__.py103 from tensorflow.python.data.experimental.ops.cardinality import assert_cardinality
104 from tensorflow.python.data.experimental.ops.cardinality import cardinality
105 from tensorflow.python.data.experimental.ops.cardinality import INFINITE as INFINITE_CARDINALITY
106 from tensorflow.python.data.experimental.ops.cardinality import UNKNOWN as UNKNOWN_CARDINALITY
/external/protobuf/php/src/Google/Protobuf/
DField.php29 private $cardinality = 0; variable in Google\\Protobuf\\Field
150 return $this->cardinality;
163 $this->cardinality = $var;
/external/tensorflow/tensorflow/python/data/experimental/kernel_tests/serialization/
Dassert_cardinality_dataset_serialization_test.py23 from tensorflow.python.data.experimental.ops import cardinality
39 cardinality.assert_cardinality(num_elements))
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/lang/
DTestUScript.java102 if(UScript.getScriptExtensions(-1, scripts)!=UScript.UNKNOWN || scripts.cardinality()!=1 || in TestGetScriptExtensions()
106 … if(UScript.getScriptExtensions(0x110000, scripts)!=UScript.UNKNOWN || scripts.cardinality()!=1 || in TestGetScriptExtensions()
112 … if(UScript.getScriptExtensions(0x063f, scripts)!=UScript.ARABIC || scripts.cardinality()!=1 || in TestGetScriptExtensions()
116 if(UScript.getScriptExtensions(0x0640, scripts)>-3 || scripts.cardinality()<3 || in TestGetScriptExtensions()
121 if(UScript.getScriptExtensions(0xfdf2, scripts)!=-2 || scripts.cardinality()!=2 || in TestGetScriptExtensions()
125 if(UScript.getScriptExtensions(0xff65, scripts)!=-6 || scripts.cardinality()!=6 || in TestGetScriptExtensions()

1234567