Home
last modified time | relevance | path

Searched refs:ndef (Results 1 – 25 of 85) sorted by relevance

1234

/external/tensorflow/tensorflow/core/framework/
Dop_segment_test.cc64 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 …]
Dmemory_types.cc76 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/
Dgradients.cc78 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/
Dequal_graph_def.cc236 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/
Dtasn_enc.c132 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/
Dp2p-nfc.py17 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 …]
Dwps-nfc.py17 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/
Dwps-ap-nfc.py15 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/
Dnfc_pw_token.c41 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()
Dwps_supplicant.h62 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/
Dcolocation_test.cc28 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/
Dfunction.cc95 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/
DRetrCommandHandlerTest.groovy39 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/
DRetrCommandHandlerTest.groovy39 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/
DRetrCommandHandlerTest.groovy39 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/
DRetrCommandHandlerTest.groovy39 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/
DRetrCommandHandlerTest.groovy39 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/
DRetrCommandHandlerTest.groovy39 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/
DRetrCommandHandlerTest.groovy39 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/
DRetrCommandHandlerTest.groovy39 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/
DRetrCommandHandlerTest.groovy39 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/
DRetrCommandHandlerTest.groovy39 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/
DRetrCommandHandlerTest.groovy39 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/
DRetrCommandHandlerTest.groovy39 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/
Dkernel_and_device.cc67 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 …]

1234