Home
last modified time | relevance | path

Searched refs:signatures (Results 1 – 25 of 273) sorted by relevance

1234567891011

/external/tensorflow/tensorflow/contrib/session_bundle/
Dsignature.cc50 Signatures* signatures) { in GetSignatures() argument
59 return ParseAny(any, signatures, "tensorflow.serving.Signatures"); in GetSignatures()
62 Status SetSignatures(const Signatures& signatures, in SetSignatures() argument
68 signatures.SerializeToString( in SetSignatures()
71 any_list->mutable_value()->Add()->PackFrom(signatures); in SetSignatures()
79 Signatures signatures; in GetClassificationSignature() local
80 TF_RETURN_IF_ERROR(GetSignatures(meta_graph_def, &signatures)); in GetClassificationSignature()
81 if (!signatures.has_default_signature()) { in GetClassificationSignature()
84 DebugStringIfAvailable(signatures))); in GetClassificationSignature()
86 if (!signatures.default_signature().has_classification_signature()) { in GetClassificationSignature()
[all …]
Dsignature_test.cc45 Signatures signatures; in TEST() local
47 signatures.mutable_default_signature() in TEST()
53 ->PackFrom(signatures); in TEST()
63 Signatures signatures; in TEST() local
64 signatures.mutable_default_signature(); in TEST()
68 ->PackFrom(signatures); in TEST()
80 Signatures signatures; in TEST() local
81 signatures.mutable_default_signature()->mutable_regression_signature(); in TEST()
85 ->PackFrom(signatures); in TEST()
97 Signatures signatures; in TEST() local
[all …]
Dbundle_shim_test.cc156 Signatures signatures; in TEST() local
157 signatures.mutable_default_signature(); in TEST()
163 ->PackFrom(signatures); in TEST()
170 Signatures signatures; in TEST() local
172 signatures.mutable_default_signature()->mutable_regression_signature(); in TEST()
179 ->PackFrom(signatures); in TEST()
196 Signatures signatures; in TEST() local
198 signatures.mutable_default_signature() in TEST()
207 ->PackFrom(signatures); in TEST()
232 Signatures signatures; in TEST() local
[all …]
Dsession_bundle_test.py55 def _checkRegressionSignature(self, signatures, sess): argument
56 default_signature = signatures.default_signature
67 def _checkNamedSignatures(self, signatures, sess): argument
68 named_signatures = signatures.named_signatures
110 signatures = manifest_pb2.Signatures()
111 signatures_any[0].Unpack(signatures)
112 self._checkRegressionSignature(signatures, sess)
113 self._checkNamedSignatures(signatures, sess)
148 signatures = manifest_pb2.Signatures()
149 signatures_any[0].Unpack(signatures)
[all …]
Dbundle_shim.cc161 const Signatures& signatures, in ConvertDefaultSignatureToSignatureDef() argument
164 if (!signatures.has_default_signature()) { in ConvertDefaultSignatureToSignatureDef()
176 const Signature& signature = signatures.default_signature(); in ConvertDefaultSignatureToSignatureDef()
197 const Signatures& signatures, in ConvertNamedSignaturesToSignatureDef() argument
200 if (signatures.named_signatures().empty()) { in ConvertNamedSignaturesToSignatureDef()
206 for (const auto& it_named_signature : signatures.named_signatures()) { in ConvertNamedSignaturesToSignatureDef()
321 Signatures signatures; in ConvertSignaturesToSignatureDefs() local
322 GetSignatures(*meta_graph_def, &signatures).IgnoreError(); in ConvertSignaturesToSignatureDefs()
331 signatures, tensor_name_to_dtype, meta_graph_def)); in ConvertSignaturesToSignatureDefs()
333 signatures, tensor_name_to_dtype, meta_graph_def)); in ConvertSignaturesToSignatureDefs()
Dbundle_shim.py69 def _convert_default_signature_to_signature_def(signatures): argument
83 default_signature = signatures.default_signature
116 def _convert_named_signatures_to_signature_def(signatures): argument
131 input_signature = signatures.named_signatures[
133 output_signature = signatures.named_signatures[
170 signatures = collection_def[legacy_constants.SIGNATURES_KEY].any_list.value[0]
171 signatures.Unpack(signatures_proto)
Dsession_bundle_test.cc89 void CheckRegressionSignature(const Signatures& signatures, in CheckRegressionSignature() argument
92 ASSERT_TRUE(signatures.default_signature().has_regression_signature()); in CheckRegressionSignature()
94 signatures.default_signature().regression_signature(); in CheckRegressionSignature()
113 void CheckNamedSignatures(const Signatures& signatures, in CheckNamedSignatures() argument
116 const string input_name = signatures.named_signatures() in CheckNamedSignatures()
122 const string output_name = signatures.named_signatures() in CheckNamedSignatures()
158 Signatures signatures; in CheckSessionBundle() local
159 TF_ASSERT_OK(GetSignatures(bundle.meta_graph_def, &signatures)); in CheckSessionBundle()
160 CheckRegressionSignature(signatures, bundle); in CheckSessionBundle()
161 CheckNamedSignatures(signatures, bundle); in CheckSessionBundle()
Dexporter_test.py79 signatures = {
118 named_graph_signatures=signatures,
163 signatures = manifest_pb2.Signatures()
164 signatures_any[0].Unpack(signatures)
165 default_signature = signatures.default_signature
168 bindings = signatures.named_signatures["generic"].generic_signature.map
172 signatures.named_signatures["foo"].regression_signature)
/external/tensorflow/tensorflow/contrib/learn/python/learn/estimators/
Dtensor_signature.py112 def tensors_compatible(tensors, signatures): argument
125 return signatures is None
128 if not isinstance(signatures, dict):
130 for key in signatures:
133 if not TensorSignature(tensors[key]).is_compatible_with(signatures[key]):
138 if signatures is None or isinstance(signatures, dict):
140 return TensorSignature(tensors).is_compatible_with(signatures)
160 def create_placeholders_from_signatures(signatures): argument
170 if signatures is None:
172 if not isinstance(signatures, dict):
[all …]
Dtensor_signature_test.py46 signatures = tensor_signature.create_signatures(placeholder_a)
48 self.assertFalse(tensor_signature.tensors_compatible(None, signatures))
51 tensor_signature.tensors_compatible(placeholder_a, signatures))
53 tensor_signature.tensors_compatible(placeholder_b, signatures))
55 tensor_signature.tensors_compatible(placeholder_c, signatures))
57 tensor_signature.tensors_compatible(placeholder_d, signatures))
60 signatures = tensor_signature.create_signatures(inputs)
61 self.assertTrue(tensor_signature.tensors_compatible(inputs, signatures))
63 tensor_signature.tensors_compatible(placeholder_a, signatures))
65 tensor_signature.tensors_compatible(placeholder_b, signatures))
[all …]
/external/vboot_reference/tests/
Drsa_padding_test.c22 TEST_EQ(RSAVerify(key, signatures[0], RSA1024NUMBYTES, 0, in TestSignatures()
27 for (i = 1; i < sizeof(signatures) / sizeof(signatures[0]); i++) { in TestSignatures()
28 if (RSAVerify(key, signatures[i], RSA1024NUMBYTES, 0, in TestSignatures()
43 TEST_EQ(RSAVerify(key, signatures[0], RSA1024NUMBYTES, 0, in TestRSAVerify()
45 TEST_EQ(RSAVerify(key, signatures[0], RSA1024NUMBYTES - 1, 0, in TestRSAVerify()
47 TEST_EQ(RSAVerify(key, signatures[0], RSA1024NUMBYTES, kNumAlgorithms, in TestRSAVerify()
49 TEST_EQ(RSAVerify(key, signatures[0], RSA1024NUMBYTES, 3, in TestRSAVerify()
53 Memcpy(sig, signatures[0], RSA1024NUMBYTES); in TestRSAVerify()
58 Memcpy(sig, signatures[0], RSA1024NUMBYTES); in TestRSAVerify()
Dvb20_rsa_padding_tests.c55 Memcpy(sig, signatures[0], sizeof(sig)); in test_signatures()
61 for (i = 1; i < sizeof(signatures) / sizeof(signatures[0]); i++) { in test_signatures()
62 Memcpy(sig, signatures[i], sizeof(sig)); in test_signatures()
86 Memcpy(sig, signatures[0], sizeof(sig)); in test_verify_digest()
90 Memcpy(sig, signatures[0], sizeof(sig)); in test_verify_digest()
98 Memcpy(sig, signatures[0], sizeof(sig)); in test_verify_digest()
105 Memcpy(sig, signatures[0], sizeof(sig)); in test_verify_digest()
112 Memcpy(sig, signatures[0], sizeof(sig)); in test_verify_digest()
117 Memcpy(sig, signatures[0], sizeof(sig)); in test_verify_digest()
/external/tensorflow/tensorflow/compiler/jit/
Dxla_compilation_cache_test.cc44 std::vector<XlaCompilationCache::Signature> signatures = {s1, s2, s3}; in TEST() local
45 for (int i = 0; i < signatures.size(); ++i) { in TEST()
46 for (int j = 0; j < signatures.size(); ++j) { in TEST()
47 EXPECT_EQ(i == j, signatures[i] == signatures[j]) in TEST()
48 << signatures[i].HumanString() << " " << signatures[j].HumanString(); in TEST()
/external/junit/src/main/java/org/junit/experimental/theories/internal/
DAssignments.java41 List<ParameterSignature> signatures; in allUnassigned() local
42 signatures = ParameterSignature.signatures(testClass in allUnassigned()
44 signatures.addAll(ParameterSignature.signatures(testMethod)); in allUnassigned()
46 signatures, testClass); in allUnassigned()
140 List<ParameterSignature> signatures = ParameterSignature in getConstructorParameterCount() local
141 .signatures(clazz.getOnlyConstructor()); in getConstructorParameterCount()
142 int constructorParameterCount = signatures.size(); in getConstructorParameterCount()
/external/tensorflow/tensorflow/python/saved_model/
Dload_v1_in_v2_test.py82 fn = imported.signatures["serving_default"]
102 fn = imported.signatures["serving_default"]
140 self.evaluate(first_imported.signatures["first_key"](
145 second_imported.signatures["second_key"](x=constant_op.constant(2.))
147 second_imported.signatures["second_key"](
151 self.evaluate(second_imported.signatures["second_key"](
186 fn = imported.signatures["serving_default"]
191 save.save(imported, second_path, signatures=imported.signatures)
194 fn = second_import.signatures["serving_default"]
200 save.save(second_import, third_path, signatures=second_import.signatures)
[all …]
Dsignature_serialization.py86 def canonicalize_signatures(signatures): argument
88 if signatures is None:
90 if not isinstance(signatures, collections.Mapping):
91 signatures = {
92 signature_constants.DEFAULT_SERVING_SIGNATURE_DEF_KEY: signatures}
94 for signature_key, function in signatures.items():
228 def create_signature_map(signatures): argument
231 for name, func in signatures.items():
262 signatures=SIGNATURE_ATTRIBUTE_NAME))
Dsave.py397 signatures = {}
408 signatures[signature_key] = signature_def_utils.build_signature_def(
412 return signatures
529 signatures = _generate_signatures(signature_functions, resource_map)
539 for signature_key, signature in signatures.items():
598 def save(obj, export_dir, signatures=None): argument
773 if signatures is None:
774 signatures = signature_serialization.find_function_to_export(
777 signatures = signature_serialization.canonicalize_signatures(signatures)
779 signature_map = signature_serialization.create_signature_map(signatures)
[all …]
Dload_test.py60 def cycle(self, obj, cycles=1, signatures=None): argument
66 save.save(to_save, path, signatures)
746 imported = self.cycle(root, cycles, signatures={})
766 imported = self.cycle(root, cycles, signatures={})
780 imported = self.cycle(root, cycles, signatures={})
801 imported = self.cycle(root, cycles, signatures={})
816 imported = self.cycle(root, cycles, signatures={})
832 imported = self.cycle(root, cycles, signatures={})
974 signatures={"key": exported.f.get_concrete_function()})
975 self.assertEqual(1., imported.signatures["key"]()["output_0"].numpy())
[all …]
/external/tensorflow/tensorflow/contrib/timeseries/python/timeseries/
Destimators_test.py105 signatures = loader.load(sess, [tag_constants.SERVING], export_location)
111 signatures=signatures,
126 signatures=signatures,
136 signatures=signatures,
149 signatures=signatures,
158 signatures.signature_def[
164 signatures=signatures,
181 signatures=signatures,
Dsaved_model_utils.py62 signatures, argument
108 predict_signature = signatures.signature_def[
121 def cold_start_filter(signatures, session, features): argument
153 filter_signature = signatures.signature_def[
170 def filter_continuation(continue_from, signatures, session, features): argument
203 filter_signature = signatures.signature_def[
/external/tensorflow/tensorflow/contrib/timeseries/examples/
Dmultivariate.py74 signatures = tf.saved_model.loader.load(
79 continue_from=current_state, signatures=signatures,
96 signatures=signatures,
Dlstm.py262 signatures = tf.saved_model.loader.load(
265 signatures=signatures, session=session, features=filter_features)
268 continue_from=state, signatures=signatures,
/external/junit/src/main/java/org/junit/experimental/theories/
DParameterSignature.java37 public static ArrayList<ParameterSignature> signatures(Method method) { in signatures() method in ParameterSignature
38 return signatures(method.getParameterTypes(), method in signatures()
42 public static List<ParameterSignature> signatures(Constructor<?> constructor) { in signatures() method in ParameterSignature
43 return signatures(constructor.getParameterTypes(), constructor in signatures()
47 private static ArrayList<ParameterSignature> signatures( in signatures() method in ParameterSignature
/external/boringssl/src/third_party/wycheproof_testvectors/
Deddsa_test.txt382 # EdDSA signatures are non-malleable, if implemented accordingly. Failing to
383 # check the range of S allows to modify signatures. See RFC 8032, Section 5.2.7
391 # EdDSA signatures are non-malleable, if implemented accordingly. Failing to
392 # check the range of S allows to modify signatures. See RFC 8032, Section 5.2.7
400 # EdDSA signatures are non-malleable, if implemented accordingly. Failing to
401 # check the range of S allows to modify signatures. See RFC 8032, Section 5.2.7
409 # EdDSA signatures are non-malleable, if implemented accordingly. Failing to
410 # check the range of S allows to modify signatures. See RFC 8032, Section 5.2.7
418 # EdDSA signatures are non-malleable, if implemented accordingly. Failing to
419 # check the range of S allows to modify signatures. See RFC 8032, Section 5.2.7
[all …]
/external/tensorflow/tensorflow/contrib/learn/python/learn/utils/
Dexport_test.py63 signatures = manifest_pb2.Signatures()
64 signatures_any[0].Unpack(signatures)
65 default_signature = signatures.default_signature
225 signatures = {}
226 signatures['regression'] = (
228 return signatures['regression'], signatures

1234567891011