/external/tensorflow/tensorflow/python/ops/ |
D | parsing_ops.py | 82 def parse_example_v2(serialized, features, example_names=None, name=None): argument 314 outputs = _parse_example_raw(serialized, example_names, params, name=name) 320 def parse_example(serialized, features, name=None, example_names=None): argument 321 return parse_example_v2(serialized, features, example_names, name) 327 def _parse_example_raw(serialized, names, params, name): argument 344 with ops.name_scope(name, "ParseExample", [serialized, names]): 346 serialized = ops.convert_to_tensor(serialized, name="serialized") 347 if params.ragged_keys and serialized.shape.ndims is None: 351 serialized=serialized, 367 serialized.shape, ragged_values, ragged_row_splits) [all …]
|
/external/opencensus-java/api/src/test/java/io/opencensus/common/ |
D | ServerStatsEncodingTest.java | 39 byte[] serialized = null; in encodeDecodeTest() 42 serialized = ServerStatsEncoding.toBytes(serverStatsToBeEncoded); in encodeDecodeTest() 43 serverStatsDecoded = ServerStatsEncoding.parseBytes(serialized); in encodeDecodeTest() 47 serialized = ServerStatsEncoding.toBytes(serverStatsToBeEncoded); in encodeDecodeTest() 48 serverStatsDecoded = ServerStatsEncoding.parseBytes(serialized); in encodeDecodeTest() 52 serialized = ServerStatsEncoding.toBytes(serverStatsToBeEncoded); in encodeDecodeTest() 53 serverStatsDecoded = ServerStatsEncoding.parseBytes(serialized); in encodeDecodeTest() 61 byte[] serialized = null; in skipUnknownFieldTest() 64 serialized = ServerStatsEncoding.toBytes(serverStatsToBeEncoded); in skipUnknownFieldTest() 67 byte[] serializedExpanded = new byte[serialized.length + 9]; in skipUnknownFieldTest() [all …]
|
/external/mockito/src/test/java/org/mockitousage/basicapi/ |
D | MocksSerializationForAnnotationTest.java | 64 ByteArrayOutputStream serialized = serializeMock(imethodsMock); in should_allow_mock_and_boolean_value_to_serializable() local 67 IMethods readObject = deserializeMock(serialized, IMethods.class); in should_allow_mock_and_boolean_value_to_serializable() 78 ByteArrayOutputStream serialized = serializeMock(imethodsMock); in should_allow_mock_and_string_value_to_be_serializable() local 81 IMethods readObject = deserializeMock(serialized, IMethods.class); in should_allow_mock_and_string_value_to_be_serializable() 92 ByteArrayOutputStream serialized = serializeMock(imethodsMock); in should_all_mock_and_serializable_value_to_be_serialized() local 95 IMethods readObject = deserializeMock(serialized, IMethods.class); in should_all_mock_and_serializable_value_to_be_serialized() 105 ByteArrayOutputStream serialized = serializeMock(imethodsMock); in should_serialize_method_call_with_parameters_that_are_serializable() local 108 IMethods readObject = deserializeMock(serialized, IMethods.class); in should_serialize_method_call_with_parameters_that_are_serializable() 118 ByteArrayOutputStream serialized = serializeMock(imethodsMock); in should_serialize_method_calls_using_any_string_matcher() local 121 IMethods readObject = deserializeMock(serialized, IMethods.class); in should_serialize_method_calls_using_any_string_matcher() [all …]
|
D | MocksSerializationTest.java | 73 ByteArrayOutputStream serialized = serializeMock(mock); in should_allow_mock_and_boolean_value_to_serializable() local 76 IMethods readObject = deserializeMock(serialized, IMethods.class); in should_allow_mock_and_boolean_value_to_serializable() 88 ByteArrayOutputStream serialized = serializeMock(mock); in should_allow_mock_and_string_value_to_be_serializable() local 91 IMethods readObject = deserializeMock(serialized, IMethods.class); in should_allow_mock_and_string_value_to_be_serializable() 103 ByteArrayOutputStream serialized = serializeMock(mock); in should_all_mock_and_serializable_value_to_be_serialized() local 106 IMethods readObject = deserializeMock(serialized, IMethods.class); in should_all_mock_and_serializable_value_to_be_serialized() 117 ByteArrayOutputStream serialized = serializeMock(mock); in should_serialize_method_call_with_parameters_that_are_serializable() local 120 IMethods readObject = deserializeMock(serialized, IMethods.class); in should_serialize_method_call_with_parameters_that_are_serializable() 131 ByteArrayOutputStream serialized = serializeMock(mock); in should_serialize_method_calls_using_any_string_matcher() local 134 IMethods readObject = deserializeMock(serialized, IMethods.class); in should_serialize_method_calls_using_any_string_matcher() [all …]
|
/external/perfetto/src/protozero/test/ |
D | protozero_conformance_unittest.cc | 70 std::string serialized = msg.SerializeAsString(); in TEST() local 72 gold_msg.ParseFromString(serialized); in TEST() 97 EXPECT_EQ(serialized.size(), static_cast<size_t>(gold_msg.ByteSize())); in TEST() 110 std::string serialized = msg_a.SerializeAsString(); in TEST() local 111 EXPECT_EQ(serialized.size(), 26u); in TEST() 114 gold_msg_a.ParseFromString(serialized); in TEST() 136 std::string serialized = msg_a.SerializeAsString(); in TEST() local 138 gold_msg_a.ParseFromString(serialized); in TEST() 180 std::string serialized = msg.SerializeAsString(); in TEST() local 190 EXPECT_EQ(15u, serialized.size()); in TEST() [all …]
|
D | cppgen_conformance_unittest.cc | 98 std::string serialized = msg.SerializeAsString(); in TEST() local 101 gold_msg.ParseFromString(serialized); in TEST() 103 EXPECT_EQ(serialized.size(), static_cast<size_t>(gold_msg.ByteSize())); in TEST() 109 std::string serialized = gold_msg.SerializeAsString(); in TEST() local 112 EXPECT_TRUE(msg.ParseFromString(serialized)); in TEST() 119 std::string serialized = msg.SerializeAsString(); in TEST() local 122 dec_msg.ParseFromString(serialized); in TEST() 124 EXPECT_EQ(serialized.size(), dec_msg.SerializeAsString().size()); in TEST() 134 std::string serialized = msg_a.SerializeAsString(); in TEST() local 137 gold_msg_a.ParseFromString(serialized); in TEST() [all …]
|
/external/protobuf/src/google/protobuf/ |
D | preserve_unknown_enum_test.cc | 93 std::string serialized; in TEST() local 94 orig_message.SerializeToString(&serialized); in TEST() 97 EXPECT_EQ(true, message.ParseFromString(serialized)); in TEST() 100 serialized.clear(); in TEST() 101 message.SerializeToString(&serialized); in TEST() 102 EXPECT_EQ(true, orig_message.ParseFromString(serialized)); in TEST() 111 std::string serialized = orig_message.SerializeAsString(); in TEST() local 119 EXPECT_EQ(true, message->ParseFromString(serialized)); in TEST() 122 serialized = message->SerializeAsString(); in TEST() 123 EXPECT_EQ(true, orig_message.ParseFromString(serialized)); in TEST() [all …]
|
/external/javaparser/javaparser-core-serialization/src/test/java/com/github/javaparser/serialization/ |
D | JavaParserJsonDeserializerTest.java | 54 String serialized = serialize(cu, false); in simpleTest() local 56 …ode deserialized = deserializer.deserializeObject(Json.createReader(new StringReader(serialized))); in simpleTest() 65 String serialized = serialize(type, false); in testRawType() local 67 …ode deserialized = deserializer.deserializeObject(Json.createReader(new StringReader(serialized))); in testRawType() 76 String serialized = serialize(type, false); in testDiamondType() local 78 …ode deserialized = deserializer.deserializeObject(Json.createReader(new StringReader(serialized))); in testDiamondType() 87 String serialized = serialize(type, false); in testGenerics() local 89 …ode deserialized = deserializer.deserializeObject(Json.createReader(new StringReader(serialized))); in testGenerics() 98 String serialized = serialize(expr, false); in testOperator() local 100 …ode deserialized = deserializer.deserializeObject(Json.createReader(new StringReader(serialized))); in testOperator() [all …]
|
/external/autotest/client/common_lib/cros/ |
D | xmlrpc_types.py | 13 def deserialize(serialized, module=None): argument 29 if TYPE_KEY not in serialized: 32 logging.error('Got serialized object: %r', serialized) 37 klass = getattr(module, serialized[TYPE_KEY]) 48 if arg not in serialized: 52 args.append(serialized[arg]) 54 serialized.iteritems())) 56 serialized[TYPE_KEY], args, kwargs)
|
/external/protobuf/python/google/protobuf/ |
D | message.py | 148 def MergeFromString(self, serialized): argument 181 def ParseFromString(self, serialized): argument 187 return self.MergeFromString(serialized) 309 return dict(serialized=self.SerializePartialToString()) 314 serialized = state['serialized'] 317 if not isinstance(serialized, bytes): 318 serialized = serialized.encode('latin1') 319 self.ParseFromString(serialized)
|
/external/clang/test/ARCMT/ |
D | check-with-serialized-diag.m | 42 // CHECK: {{.*}}check-with-serialized-diag.m:32:4: error: [rewriter] it is not safe to remove 'reta… 44 // CHECK-NEXT: {{.*}}check-with-serialized-diag.m:34:4: error: [rewriter] it is not safe to remove … 46 // CHECK-NEXT: {{.*}}check-with-serialized-diag.m:32:23: error: ARC forbids explicit message send o… 47 // CHECK-NEXT: Range: {{.*}}check-with-serialized-diag.m:32:4 {{.*}}check-with-serialized-diag.m:32… 49 // CHECK-NEXT: {{.*}}check-with-serialized-diag.m:34:15: error: ARC forbids explicit message send o… 50 // CHECK-NEXT: Range: {{.*}}check-with-serialized-diag.m:34:4 {{.*}}check-with-serialized-diag.m:34… 52 // CHECK-NEXT: {{.*}}check-with-serialized-diag.m:35:6: error: ARC forbids explicit message send of… 53 // CHECK-NEXT: Range: {{.*}}check-with-serialized-diag.m:35:4 {{.*}}check-with-serialized-diag.m:35…
|
/external/llvm-project/clang/test/ARCMT/ |
D | check-with-serialized-diag.m | 42 // CHECK: {{.*}}check-with-serialized-diag.m:32:4: error: [rewriter] it is not safe to remove 'reta… 44 // CHECK-NEXT: {{.*}}check-with-serialized-diag.m:34:4: error: [rewriter] it is not safe to remove … 46 // CHECK-NEXT: {{.*}}check-with-serialized-diag.m:32:23: error: ARC forbids explicit message send o… 47 // CHECK-NEXT: Range: {{.*}}check-with-serialized-diag.m:32:4 {{.*}}check-with-serialized-diag.m:32… 49 // CHECK-NEXT: {{.*}}check-with-serialized-diag.m:34:15: error: ARC forbids explicit message send o… 50 // CHECK-NEXT: Range: {{.*}}check-with-serialized-diag.m:34:4 {{.*}}check-with-serialized-diag.m:34… 52 // CHECK-NEXT: {{.*}}check-with-serialized-diag.m:35:6: error: ARC forbids explicit message send of… 53 // CHECK-NEXT: Range: {{.*}}check-with-serialized-diag.m:35:4 {{.*}}check-with-serialized-diag.m:35…
|
/external/tensorflow/tensorflow/python/kernel_tests/ |
D | parsing_ops_test.py | 100 serialized = kwargs["serialized"] 102 self.evaluate(serialized).size 103 if isinstance(serialized, ops.Tensor) else np.asarray(serialized).size) 209 serialized = [m.SerializeToString() for m in original] 214 "serialized": ops.convert_to_tensor(serialized), 229 serialized = [m.SerializeToString() for m in original] 234 "serialized": ops.convert_to_tensor(serialized), 259 serialized = [m.SerializeToString() for m in original] 277 "serialized": ops.convert_to_tensor(serialized), 309 serialized = [m.SerializeToString() for m in original] [all …]
|
D | sparse_serialization_ops_test.py | 74 serialized = serialize_fn(sp_input, out_type=out_type) 75 sp_deserialized = deserialize_fn(serialized, dtype=dtypes.int32) 98 serialized = serialize_fn(sp_input, out_type=out_type) 99 serialized = array_ops.stack([serialized, serialized]) 101 sp_deserialized = deserialize_fn(serialized, dtype=dtypes.int32) 137 serialized = array_ops.stack([serialized0, serialized1]) 139 sp_deserialized = deserialize_fn(serialized, dtype=dtypes.int32) 169 serialized = serialize_fn(sp_input, out_type=out_type) 170 serialized = array_ops.stack([serialized, serialized]) 171 serialized = array_ops.stack([serialized, serialized]) [all …]
|
/external/clang/test/Misc/ |
D | serialized-diags.m | 18 // This test checks that serialized diagnostics handle notes with no source location. 20 // CHECK: {{.*[/\\]}}serialized-diags.m:8:4: error: use of undeclared identifier '_self'; did you m… 21 // CHECK: Range: {{.*[/\\]}}serialized-diags.m:8:4 {{.*[/\\]}}serialized-diags.m:8:9 23 // CHECK: FIXIT: ({{.*[/\\]}}serialized-diags.m:8:4 - {{.*[/\\]}}serialized-diags.m:8:9): "self" 26 // CHECK: {{.*[/\\]}}serialized-diags.m:1:12: warning: class 'Foo' defined without specifying a bas… 28 // CHECK: +-{{.*[/\\]}}serialized-diags.m:1:15: note: add a super class to fix this problem [] [Sem…
|
/external/llvm-project/clang/test/Misc/ |
D | serialized-diags.m | 18 // This test checks that serialized diagnostics handle notes with no source location. 20 // CHECK: {{.*[/\\]}}serialized-diags.m:8:4: error: use of undeclared identifier '_self'; did you m… 21 // CHECK: Range: {{.*[/\\]}}serialized-diags.m:8:4 {{.*[/\\]}}serialized-diags.m:8:9 23 // CHECK: FIXIT: ({{.*[/\\]}}serialized-diags.m:8:4 - {{.*[/\\]}}serialized-diags.m:8:9): "self" 26 // CHECK: {{.*[/\\]}}serialized-diags.m:1:12: warning: class 'Foo' defined without specifying a bas… 28 // CHECK: +-{{.*[/\\]}}serialized-diags.m:1:15: note: add a super class to fix this problem [] [Sem…
|
/external/tensorflow/tensorflow/core/util/ |
D | example_proto_fast_parsing_test.cc | 41 string SerializedToReadable(string serialized) { in SerializedToReadable() argument 44 for (char c : serialized) in SerializedToReadable() 52 string serialized; in Serialize() local 53 example.SerializeToString(&serialized); in Serialize() 54 return serialized; in Serialize() 59 void TestCorrectness(const string& serialized) { in TestCorrectness() argument 62 EXPECT_TRUE(example.ParseFromString(serialized)); in TestCorrectness() 64 EXPECT_TRUE(TestFastParse(serialized, &fast_example)); in TestCorrectness() 67 LOG(ERROR) << "Bad serialized: " << SerializedToReadable(serialized); in TestCorrectness() 150 string serialized = Serialize(example) + Serialize(context); in TEST() local [all …]
|
/external/tensorflow/tensorflow/c/eager/ |
D | c_api_cluster_test.cc | 111 string serialized = server_def.SerializeAsString(); in TestRemoteExecuteChangeServerDef() local 129 TFE_ContextSetServerDef(ctx, 0, serialized.data(), serialized.size(), status); in TestRemoteExecuteChangeServerDef() 148 serialized = updated_server_def.SerializeAsString(); in TestRemoteExecuteChangeServerDef() 156 TFE_ContextSetServerDef(ctx, 0, serialized.data(), serialized.size(), status); in TestRemoteExecuteChangeServerDef() 204 string serialized = server_def.SerializeAsString(); in TestRemoteExecuteUpdateServerDef() local 221 TFE_ContextSetServerDef(ctx, 0, serialized.data(), serialized.size(), status); in TestRemoteExecuteUpdateServerDef() 229 TFE_ContextUpdateServerDef(ctx, 0, serialized.data(), serialized.size(), in TestRemoteExecuteUpdateServerDef() 252 string serialized = server_def.SerializeAsString(); in TestRemoteExecuteUpdateServerDefResourceAccess() local 269 TFE_ContextSetServerDef(ctx, 0, serialized.data(), serialized.size(), status); in TestRemoteExecuteUpdateServerDefResourceAccess() 352 string serialized = server_def.SerializeAsString(); in TestRemoteExecuteUpdateServerDefWithFailures() local [all …]
|
/external/rust/crates/grpcio-sys/grpc/third_party/upb/tests/ |
D | test_generated_code.c | 32 upb_strview serialized; in test_scalars() local 45 serialized.data = protobuf_test_messages_proto3_TestAllTypesProto3_serialize( in test_scalars() 46 msg, arena, &serialized.size); in test_scalars() 49 serialized.data, serialized.size, arena); in test_scalars() 75 upb_strview serialized; in test_utf8() local 83 serialized.data = protobuf_test_messages_proto3_TestAllTypesProto3_serialize( in test_utf8() 84 msg, arena, &serialized.size); in test_utf8() 87 serialized.data, serialized.size, arena); in test_utf8() 144 upb_strview serialized; in test_string_double_map() local 155 serialized.data = upb_test_MapTest_serialize(msg, arena, &serialized.size); in test_string_double_map() [all …]
|
/external/tensorflow/tensorflow/python/data/experimental/kernel_tests/ |
D | parse_example_dataset_test.py | 194 serialized = [m.SerializeToString() for m in original] 197 ops.convert_to_tensor(serialized), 206 serialized = [m.SerializeToString() for m in original] 209 ops.convert_to_tensor(serialized), 231 serialized = [m.SerializeToString() for m in original] 248 ops.convert_to_tensor(serialized), { 277 serialized = [m.SerializeToString() for m in original] 287 ops.convert_to_tensor(serialized), 306 serialized = [m.SerializeToString() for m in original] 324 ops.convert_to_tensor(serialized), { [all …]
|
/external/python/oauth2client/oauth2client/contrib/ |
D | dictionary_storage.py | 43 serialized = self._dictionary.get(self._key) 45 if serialized is None: 48 credentials = client.OAuth2Credentials.from_json(serialized) 60 serialized = credentials.to_json() 61 self._dictionary[self._key] = serialized
|
/external/rust/crates/serde_cbor/tests/ |
D | std_types.rs | 26 let mut serialized = to_binary($s); localVariable 27 assert_eq!(to_vec(&expr).unwrap(), serialized); 28 let parsed: f64 = from_slice(&serialized[..]).unwrap(); 35 let parsed: f64 = from_reader(&mut &serialized[..]).unwrap(); 42 let parsed: f64 = from_mut_slice(&mut serialized[..]).unwrap(); 54 let mut serialized = to_binary($s); localVariable 57 serialized, 60 let parsed: $ty = from_slice(&serialized[..]).expect("de1 works"); 66 let parsed: $ty = from_reader(&mut &serialized[..]).unwrap(); 73 let parsed: $ty = from_mut_slice(&mut serialized[..]).unwrap();
|
/external/opencensus-java/impl_core/src/test/java/io/opencensus/implcore/tags/propagation/ |
D | TagContextBinarySerializerImplTest.java | 69 final byte[] serialized = serializer.toByteArray(tagContext); in toByteArray_TaggingReenabled() 73 assertThat(serializer.toByteArray(tagContext)).isEqualTo(serialized); in toByteArray_TaggingReenabled() 80 byte[] serialized = serializer.toByteArray(tagContext); in fromByteArray_TaggingDisabled() 82 assertThat(TagsTestUtil.tagContextToList(serializer.fromByteArray(serialized))).isEmpty(); in fromByteArray_TaggingDisabled() 88 byte[] serialized = serializer.toByteArray(tagContext); in fromByteArray_TaggingReenabled() 90 assertThat(TagsTestUtil.tagContextToList(serializer.fromByteArray(serialized))).isEmpty(); in fromByteArray_TaggingReenabled() 92 assertThat(serializer.fromByteArray(serialized)).isEqualTo(tagContext); in fromByteArray_TaggingReenabled()
|
/external/tensorflow/tensorflow/core/api_def/base_api/ |
D | api_def_ParseTensor.pbtxt | 4 name: "serialized" 6 A scalar string containing a serialized TensorProto proto. 18 The type of the serialized tensor. The provided type must match the 19 type of the serialized tensor and no implicit conversion will take place. 22 summary: "Transforms a serialized tensorflow.TensorProto proto into a Tensor."
|
/external/mockito/src/test/java/org/mockitoutil/ |
D | SimpleSerializationUtil.java | 20 …public static <T> T deserializeMock(ByteArrayOutputStream serialized, Class<T> type) throws IOExce… in deserializeMock() argument 22 InputStream unserialize = new ByteArrayInputStream(serialized.toByteArray()); in deserializeMock() 33 ByteArrayOutputStream serialized = new ByteArrayOutputStream(); in serializeMock() local 34 new ObjectOutputStream(serialized).writeObject(mock); in serializeMock() 35 return serialized; in serializeMock()
|