/external/tensorflow/tensorflow/core/framework/ |
D | op_segment_test.cc | 64 OpSegment::CreateKernelFn GetFn(const NodeDef* ndef) { in GetFn() argument 65 return [this, ndef](OpKernel** kernel) { in GetFn() 68 *ndef, TF_GRAPH_DEF_VERSION, &s); in GetFn() 85 auto* ndef = &float_nodedefs_[i]; in TEST_F() local 86 TF_EXPECT_OK(opseg.FindOrCreate("A", ndef->name(), &op, GetFn(ndef))); in TEST_F() 87 ValidateOpAndTypes(op, *ndef, DT_FLOAT); in TEST_F() 90 ndef = &int32_nodedefs_[i]; in TEST_F() 91 TF_EXPECT_OK(opseg.FindOrCreate("B", ndef->name(), &op, GetFn(ndef))); in TEST_F() 92 ValidateOpAndTypes(op, *ndef, DT_INT32); in TEST_F() 136 const auto& ndef = int32_nodedefs_[0]; in TEST_F() local [all …]
|
D | memory_types.cc | 76 const DeviceType& device_type, const NodeDef& ndef, in MemoryTypesForNode() argument 81 TF_RETURN_IF_ERROR(op_registry->LookUpOpDef(ndef.op(), &op_def)); in MemoryTypesForNode() 86 FindKernelDef(device_type, ndef, &kdef, nullptr /* kernel_class_name */); in MemoryTypesForNode() 91 InOutTypesForNode(ndef, *op_def, &inp_dtypes, &out_dtypes)); in MemoryTypesForNode() 102 if (!status.ok() || IsFunctionCallOp(ndef.op())) { in MemoryTypesForNode() 111 TF_RETURN_IF_ERROR(NameRangesForNode(ndef, *op_def, &inp_names, &out_names)); in MemoryTypesForNode() 143 if (GetNodeAttr(ndef, "_input_hostmem", &hostmem_attr).ok()) { in MemoryTypesForNode() 150 if (GetNodeAttr(ndef, "_output_hostmem", &hostmem_attr).ok()) { in MemoryTypesForNode()
|
/external/tensorflow/tensorflow/core/graph/ |
D | gradients.cc | 78 NodeDef ndef; in AddZerosLike() local 79 ndef.set_name(g->NewName(kNodeLabel)); in AddZerosLike() 80 ndef.set_op("ZerosLike"); in AddZerosLike() 81 ndef.add_input(read_def.name()); in AddZerosLike() 82 AddNodeAttr("T", DT_FLOAT, &ndef); in AddZerosLike() 83 Node* ret = g->AddNode(ndef, &s); in AddZerosLike() 88 NodeDef ndef; in AddZerosLike() local 89 ndef.set_name(g->NewName(kNodeLabel)); in AddZerosLike() 90 ndef.set_op("ZerosLike"); in AddZerosLike() 91 ndef.add_input(input.name()); in AddZerosLike() [all …]
|
/external/tensorflow/tensorflow/core/util/ |
D | equal_graph_def.cc | 236 uint64 NodeDefHash(const NodeDef& ndef, const EqualGraphDefOptions& options) { in NodeDefHash() argument 237 uint64 h = Hash64(ndef.name()); in NodeDefHash() 238 h = Hash64(ndef.op().data(), ndef.op().size(), h); in NodeDefHash() 239 h = Hash64(ndef.device().data(), ndef.device().size(), h); in NodeDefHash() 242 int first_control_input = ndef.input_size(); in NodeDefHash() 243 for (int i = 0; i < ndef.input_size(); ++i) { in NodeDefHash() 244 if (str_util::StartsWith(ndef.input(i), "^")) { in NodeDefHash() 248 h = Hash64(ndef.input(i).data(), ndef.input(i).size(), h); in NodeDefHash() 253 for (int i = first_control_input; i < ndef.input_size(); ++i) { in NodeDefHash() 254 ndef_control.insert(ndef.input(i)); in NodeDefHash() [all …]
|
/external/boringssl/src/crypto/asn1/ |
D | tasn_enc.c | 132 int i, seqcontlen, seqlen, ndef = 1; in ASN1_item_ex_i2d() local 194 ndef = 2; in ASN1_item_ex_i2d() 231 seqlen = ASN1_object_size(ndef, seqcontlen, tag); in ASN1_item_ex_i2d() 235 ASN1_put_object(out, ndef, seqcontlen, tag, aclass); in ASN1_item_ex_i2d() 246 if (ndef == 2) in ASN1_item_ex_i2d() 262 int i, ret, flags, ttag, tclass, ndef; in asn1_template_ex_i2d() local 300 ndef = 2; in asn1_template_ex_i2d() 302 ndef = 1; in asn1_template_ex_i2d() 348 sklen = ASN1_object_size(ndef, skcontlen, sktag); in asn1_template_ex_i2d() 353 ret = ASN1_object_size(ndef, sklen, ttag); in asn1_template_ex_i2d() [all …]
|
/external/wpa_supplicant_8/wpa_supplicant/examples/ |
D | p2p-nfc.py | 17 import nfc.ndef 154 message = nfc.ndef.HandoverRequestMessage(version="1.2") 164 datamsg = nfc.ndef.Message(data) 178 datamsg = nfc.ndef.Message(data) 226 message = nfc.ndef.HandoverSelectMessage(message) 270 response = nfc.ndef.Message("\xd1\x02\x01Hs\x12") 275 request = nfc.ndef.HandoverRequestMessage(request) 276 except nfc.ndef.DecodeError as e: 292 sel = nfc.ndef.HandoverSelectMessage(version="1.2") 320 message = nfc.ndef.Message(data); [all …]
|
D | wps-nfc.py | 17 import nfc.ndef 149 response = nfc.ndef.Message("\xd1\x02\x01Hs\x12") 154 request = nfc.ndef.HandoverRequestMessage(request) 155 except nfc.ndef.DecodeError as e: 170 sel = nfc.ndef.HandoverSelectMessage(version="1.2") 188 message = nfc.ndef.Message(data); 212 message = nfc.ndef.HandoverRequestMessage(version="1.2") 214 datamsg = nfc.ndef.Message(data) 262 message = nfc.ndef.HandoverSelectMessage(message) 297 if len(tag.ndef.message): [all …]
|
/external/wpa_supplicant_8/hostapd/ |
D | wps-ap-nfc.py | 15 import nfc.ndef 120 response = nfc.ndef.Message("\xd1\x02\x01Hs\x12") 125 request = nfc.ndef.HandoverRequestMessage(request) 126 except nfc.ndef.DecodeError as e: 141 sel = nfc.ndef.HandoverSelectMessage(version="1.2") 158 message = nfc.ndef.Message(data); 175 if len(tag.ndef.message): 176 for record in tag.ndef.message: 180 success = wpas_tag_read(tag.ndef.message) 194 tag.ndef.message = str(write_data) [all …]
|
/external/wpa_supplicant_8/wpa_supplicant/ |
D | nfc_pw_token.c | 41 struct wpabuf *buf = NULL, *ndef = NULL; in main() local 57 ndef = ndef_build_wifi(buf); in main() 58 if (ndef == NULL) in main() 65 wpa_snprintf_hex_uppercase(txt, sizeof(txt), wpabuf_head(ndef), in main() 66 wpabuf_len(ndef)); in main() 76 wpabuf_free(ndef); in main()
|
D | wps_supplicant.h | 62 int ndef, const char *uuid); 66 int ndef, struct wpa_ssid * ssid); 68 int ndef, const char *id_str); 69 struct wpabuf * wpas_wps_nfc_token(struct wpa_supplicant *wpa_s, int ndef); 78 int ndef); 80 int ndef, int cr, const char *uuid);
|
/external/tensorflow/tensorflow/core/grappler/utils/ |
D | colocation_test.cc | 28 bool VerifyNodeHasColocation(const NodeDef& ndef, const string& coloc) { in VerifyNodeHasColocation() argument 29 if (ndef.attr().empty()) { in VerifyNodeHasColocation() 32 if (ndef.attr().find("_class") == ndef.attr().end()) { in VerifyNodeHasColocation() 35 return ndef.attr().at("_class").list().s(0) == coloc; in VerifyNodeHasColocation() 45 NodeDef ndef; in TEST() local 47 NodeDefBuilder("A", "Const").Attr("_class", {"loc:@B"}).Finalize(&ndef); in TEST() 49 GraphDef gdef = test::function::GDef({ndef}); in TEST()
|
/external/tensorflow/tensorflow/core/common_runtime/ |
D | function.cc | 95 NodeDef ndef; in AddNoOp() local 96 ndef.set_name(g->NewName(absl::StrCat(kNodeLabel, "/", name))); in AddNoOp() 97 ndef.set_op("NoOp"); in AddNoOp() 99 Node* ret = g->AddNode(ndef, &s); in AddNoOp() 106 NodeDef ndef; in AddIdentity() local 107 ndef.set_name(g->NewName(absl::StrCat(kNodeLabel, "/", name))); in AddIdentity() 108 ndef.set_op("Identity"); in AddIdentity() 112 ndef.set_device(input.node->def().device()); in AddIdentity() 113 ndef.add_input(input.name()); in AddIdentity() 114 AddNodeAttr("T", BaseType(input.dtype()), &ndef); in AddIdentity() [all …]
|
/external/mockftpserver/tags/2.2/src/test/groovy/org/mockftpserver/fake/command/ |
D | RetrCommandHandlerTest.groovy | 39 def CONTENTS = "abc\ndef\nghi" 40 def CONTENTS_ASCII = "abc\r\ndef\r\nghi" 99 assert commandHandler.convertLfToCrLf('abc\r\ndef'.bytes) == 'abc\r\ndef'.bytes 100 assert commandHandler.convertLfToCrLf('abc\ndef'.bytes) == 'abc\r\ndef'.bytes 101 assert commandHandler.convertLfToCrLf('abc\ndef\nghi'.bytes) == 'abc\r\ndef\r\nghi'.bytes
|
/external/mockftpserver/tags/2.4/src/test/groovy/org/mockftpserver/fake/command/ |
D | RetrCommandHandlerTest.groovy | 39 def CONTENTS = "abc\ndef\nghi" 40 def CONTENTS_ASCII = "abc\r\ndef\r\nghi" 99 assert commandHandler.convertLfToCrLf('abc\r\ndef'.bytes) == 'abc\r\ndef'.bytes 100 assert commandHandler.convertLfToCrLf('abc\ndef'.bytes) == 'abc\r\ndef'.bytes 101 assert commandHandler.convertLfToCrLf('abc\ndef\nghi'.bytes) == 'abc\r\ndef\r\nghi'.bytes
|
/external/mockftpserver/tags/2.0/src/test/groovy/org/mockftpserver/fake/command/ |
D | RetrCommandHandlerTest.groovy | 39 def CONTENTS = "abc\ndef\nghi" 40 def CONTENTS_ASCII = "abc\r\ndef\r\nghi" 99 assert commandHandler.convertLfToCrLf('abc\r\ndef'.bytes) == 'abc\r\ndef'.bytes 100 assert commandHandler.convertLfToCrLf('abc\ndef'.bytes) == 'abc\r\ndef'.bytes 101 assert commandHandler.convertLfToCrLf('abc\ndef\nghi'.bytes) == 'abc\r\ndef\r\nghi'.bytes
|
/external/mockftpserver/tags/2.5/src/test/groovy/org/mockftpserver/fake/command/ |
D | RetrCommandHandlerTest.groovy | 39 def CONTENTS = "abc\ndef\nghi" 40 def CONTENTS_ASCII = "abc\r\ndef\r\nghi" 99 assert commandHandler.convertLfToCrLf('abc\r\ndef'.bytes) == 'abc\r\ndef'.bytes 100 assert commandHandler.convertLfToCrLf('abc\ndef'.bytes) == 'abc\r\ndef'.bytes 101 assert commandHandler.convertLfToCrLf('abc\ndef\nghi'.bytes) == 'abc\r\ndef\r\nghi'.bytes
|
/external/mockftpserver/MockFtpServer/src/test/groovy/org/mockftpserver/fake/command/ |
D | RetrCommandHandlerTest.groovy | 39 def CONTENTS = "abc\ndef\nghi" 40 def CONTENTS_ASCII = "abc\r\ndef\r\nghi" 99 assert commandHandler.convertLfToCrLf('abc\r\ndef'.bytes) == 'abc\r\ndef'.bytes 100 assert commandHandler.convertLfToCrLf('abc\ndef'.bytes) == 'abc\r\ndef'.bytes 101 assert commandHandler.convertLfToCrLf('abc\ndef\nghi'.bytes) == 'abc\r\ndef\r\nghi'.bytes
|
/external/mockftpserver/tags/2.0-rc1/src/test/groovy/org/mockftpserver/fake/command/ |
D | RetrCommandHandlerTest.groovy | 39 def CONTENTS = "abc\ndef\nghi" 40 def CONTENTS_ASCII = "abc\r\ndef\r\nghi" 99 assert commandHandler.convertLfToCrLf('abc\r\ndef'.bytes) == 'abc\r\ndef'.bytes 100 assert commandHandler.convertLfToCrLf('abc\ndef'.bytes) == 'abc\r\ndef'.bytes 101 assert commandHandler.convertLfToCrLf('abc\ndef\nghi'.bytes) == 'abc\r\ndef\r\nghi'.bytes
|
/external/mockftpserver/tags/2.1/src/test/groovy/org/mockftpserver/fake/command/ |
D | RetrCommandHandlerTest.groovy | 39 def CONTENTS = "abc\ndef\nghi" 40 def CONTENTS_ASCII = "abc\r\ndef\r\nghi" 99 assert commandHandler.convertLfToCrLf('abc\r\ndef'.bytes) == 'abc\r\ndef'.bytes 100 assert commandHandler.convertLfToCrLf('abc\ndef'.bytes) == 'abc\r\ndef'.bytes 101 assert commandHandler.convertLfToCrLf('abc\ndef\nghi'.bytes) == 'abc\r\ndef\r\nghi'.bytes
|
/external/mockftpserver/tags/2.0.1/src/test/groovy/org/mockftpserver/fake/command/ |
D | RetrCommandHandlerTest.groovy | 39 def CONTENTS = "abc\ndef\nghi" 40 def CONTENTS_ASCII = "abc\r\ndef\r\nghi" 99 assert commandHandler.convertLfToCrLf('abc\r\ndef'.bytes) == 'abc\r\ndef'.bytes 100 assert commandHandler.convertLfToCrLf('abc\ndef'.bytes) == 'abc\r\ndef'.bytes 101 assert commandHandler.convertLfToCrLf('abc\ndef\nghi'.bytes) == 'abc\r\ndef\r\nghi'.bytes
|
/external/mockftpserver/tags/2.0.2/src/test/groovy/org/mockftpserver/fake/command/ |
D | RetrCommandHandlerTest.groovy | 39 def CONTENTS = "abc\ndef\nghi" 40 def CONTENTS_ASCII = "abc\r\ndef\r\nghi" 99 assert commandHandler.convertLfToCrLf('abc\r\ndef'.bytes) == 'abc\r\ndef'.bytes 100 assert commandHandler.convertLfToCrLf('abc\ndef'.bytes) == 'abc\r\ndef'.bytes 101 assert commandHandler.convertLfToCrLf('abc\ndef\nghi'.bytes) == 'abc\r\ndef\r\nghi'.bytes
|
/external/mockftpserver/tags/2.0-rc1/MockFtpServer/src/test/groovy/org/mockftpserver/fake/command/ |
D | RetrCommandHandlerTest.groovy | 39 def CONTENTS = "abc\ndef\nghi" 40 def CONTENTS_ASCII = "abc\r\ndef\r\nghi" 99 assert commandHandler.convertLfToCrLf('abc\r\ndef'.bytes) == 'abc\r\ndef'.bytes 100 assert commandHandler.convertLfToCrLf('abc\ndef'.bytes) == 'abc\r\ndef'.bytes 101 assert commandHandler.convertLfToCrLf('abc\ndef\nghi'.bytes) == 'abc\r\ndef\r\nghi'.bytes
|
/external/mockftpserver/tags/2.0-rc3/MockFtpServer/src/test/groovy/org/mockftpserver/fake/command/ |
D | RetrCommandHandlerTest.groovy | 39 def CONTENTS = "abc\ndef\nghi" 40 def CONTENTS_ASCII = "abc\r\ndef\r\nghi" 99 assert commandHandler.convertLfToCrLf('abc\r\ndef'.bytes) == 'abc\r\ndef'.bytes 100 assert commandHandler.convertLfToCrLf('abc\ndef'.bytes) == 'abc\r\ndef'.bytes 101 assert commandHandler.convertLfToCrLf('abc\ndef\nghi'.bytes) == 'abc\r\ndef\r\nghi'.bytes
|
/external/mockftpserver/tags/2.3/src/test/groovy/org/mockftpserver/fake/command/ |
D | RetrCommandHandlerTest.groovy | 39 def CONTENTS = "abc\ndef\nghi" 40 def CONTENTS_ASCII = "abc\r\ndef\r\nghi" 99 assert commandHandler.convertLfToCrLf('abc\r\ndef'.bytes) == 'abc\r\ndef'.bytes 100 assert commandHandler.convertLfToCrLf('abc\ndef'.bytes) == 'abc\r\ndef'.bytes 101 assert commandHandler.convertLfToCrLf('abc\ndef\nghi'.bytes) == 'abc\r\ndef\r\nghi'.bytes
|
/external/tensorflow/tensorflow/core/common_runtime/eager/ |
D | kernel_and_device.cc | 67 Status KernelAndDeviceOp::Init(const NodeDef& ndef, in Init() argument 75 TF_RETURN_IF_ERROR(flr_->CreateKernel(ndef, &k)); in Init() 80 Status KernelAndDeviceFunc::Init(const NodeDef& ndef, in Init() argument 90 ->Find(ndef.op()); in Init() 92 function_def = flr_->GetFunctionLibraryDefinition()->Find(ndef.op()); in Init() 98 TF_RETURN_IF_ERROR(OpDefForOp(ndef.op().c_str(), &op_def)); in Init() 101 InOutTypesForNode(ndef, *op_def, &input_dtypes_, &output_dtypes_)); in Init() 110 const auto& it = ndef.attr().find("executor_type"); in Init() 111 if (it != ndef.attr().end()) { in Init() 116 const auto& config_it = ndef.attr().find("config_proto"); in Init() [all …]
|