Home
last modified time | relevance | path

Searched refs:custom_name (Results 1 – 21 of 21) sorted by relevance

/external/tensorflow/tensorflow/lite/experimental/writer/
Dwriter_lib.cc59 if (!registration->custom_name) { in ExportOperators()
64 GetOpCodeForCustom(registration->custom_name); in ExportOperators()
81 if (!registration.custom_name) { in ExportOperators()
89 auto custom_writer = custom_op_to_writer_.find(registration.custom_name); in ExportOperators()
209 const char* custom_name = it.custom.empty() ? nullptr : it.custom.c_str(); in CreateOpCodeTable() local
211 *fbb, static_cast<BuiltinOperator>(it.builtin), custom_name)); in CreateOpCodeTable()
284 const std::string& custom_name, CustomWriter custom_writer) { in RegisterCustomWriter() argument
285 if (custom_op_to_writer_.find(custom_name) != custom_op_to_writer_.end()) { in RegisterCustomWriter()
288 custom_op_to_writer_.insert(std::make_pair(custom_name, custom_writer)); in RegisterCustomWriter()
Dwriter_lib.h63 TfLiteStatus RegisterCustomWriter(const std::string& custom_name,
99 int GetOpCodeForCustom(const std::string& custom_name) { in GetOpCodeForCustom() argument
102 std::make_pair(custom_name, opcodes_.size())); in GetOpCodeForCustom()
104 opcodes_.push_back({BuiltinOperator_CUSTOM, custom_name}); in GetOpCodeForCustom()
/external/toybox/toys/pending/
Dmdev.c41 char *device_name = 0, *custom_name = 0, *s, *temp; in make_device() local
192 custom_name = strdup(&name[1]); in make_device()
225 if(custom_name) { in make_device()
226 sprintf(toybuf, "/dev/%s", custom_name); in make_device()
227 if(custom_name[strlen(custom_name) - 1] == '/') { in make_device()
/external/tensorflow/tensorflow/lite/
Dutil.cc21 bool IsFlexOp(const char* custom_name) { in IsFlexOp() argument
22 return custom_name && strncmp(custom_name, kFlexCustomCodePrefix, in IsFlexOp()
Dmutable_op_resolver.cc37 new_registration.custom_name = nullptr; in AddBuiltin()
51 new_registration.custom_name = name; in AddCustom()
Doptional_debug_tools.cc104 if (reg.custom_name != nullptr) { in PrintInterpreterState()
106 reg.custom_name); in PrintInterpreterState()
Dutil.h37 bool IsFlexOp(const char* custom_name);
Dinterpreter_test.cc1042 reg.custom_name = "my_add"; in AddOpRegistration()
1131 TFLITE_CHECK_EQ(strcmp(reg->custom_name, "my_add"), 0); in SimpleDelegate()
1146 TFLITE_CHECK_EQ(strcmp(reg->custom_name, "my_add"), 0); in SimpleDelegate()
1178 reg.custom_name = "fake_fused_op"; in FakeFusedRegistration()
1199 EXPECT_EQ(node_and_reg->second.custom_name, in TEST_F()
1200 SimpleDelegate::FakeFusedRegistration().custom_name); in TEST_F()
1244 ASSERT_EQ(node_and_reg->second.custom_name, in TEST_F()
1245 SimpleDelegate::FakeFusedRegistration().custom_name); in TEST_F()
Dmodel.cc450 IsFlexOp(registration->custom_name)) { in ApplyDelegates()
/external/tensorflow/tensorflow/lite/profiling/
Dprofile_summarizer.cc74 const char* custom_name = node_reg->second.custom_name; in GetOperatorDetails() local
75 op_name = custom_name ? custom_name : "UnknownCustomOp"; in GetOperatorDetails()
/external/tensorflow/tensorflow/lite/experimental/micro/
Dmicro_mutable_op_resolver.cc37 (strcmp(registration.custom_name, op) == 0) && in FindOp()
75 new_registration->custom_name = name; in AddCustom()
Dmicro_interpreter.cc44 return registration->custom_name; in OpNameFromRegistration()
/external/python/cpython3/Lib/idlelib/idle_test/
Dtest_configdialog.py276 eq(d.custom_name.get(), '- no custom themes -')
287 eq(d.custom_name.get(), 'test1')
298 eq(d.custom_name.get(), 'test2')
479 eq(d.custom_name.get(), gntn.result)
494 d.custom_name.set('Python')
549 eq(d.custom_name.get(), first_new)
658 d.custom_name.set(theme_name)
677 eq(d.custom_name.get(), '- no custom themes -')
726 eq(d.custom_name.get(), '- no custom keys -')
737 eq(d.custom_name.get(), 'test1')
[all …]
/external/python/cpython3/Lib/idlelib/
Dconfigdialog.py823 self.custom_name = tracers.add(
905 frame_theme, self.custom_name, None, command=None)
967 self.custom_name.set('- no custom themes -')
1010 value = self.custom_name.get()
1109 theme = self.custom_name.get()
1156 theme_name = self.custom_name.get()
1249 theme = self.custom_name.get()
1304 theme_name = self.custom_name.get()
1422 self.custom_name = tracers.add(
1464 frames[0], self.custom_name, None, command=None)
[all …]
/external/tensorflow/tensorflow/lite/java/src/test/native/
Dinterpreter_test_jni.cc49 .custom_name = "", in Java_org_tensorflow_lite_InterpreterTest_getNativeHandleForDelegate()
/external/libcups/cups/
Dppd.c477 char custom_name[PPD_MAX_NAME]; in _ppdOpen() local
1422 strlcpy(custom_name, "CustomPageSize", sizeof(custom_name)); in _ppdOpen()
1424 snprintf(custom_name, sizeof(custom_name), "Custom%s", name); in _ppdOpen()
1426 if ((custom_attr = ppdFindAttr(ppd, custom_name, "True")) != NULL) in _ppdOpen()
1528 snprintf(custom_name, sizeof(custom_name), "Custom%s", name); in _ppdOpen()
1530 if ((custom_attr = ppdFindAttr(ppd, custom_name, "True")) != NULL) in _ppdOpen()
/external/tensorflow/tensorflow/lite/delegates/flex/
Ddelegate.cc60 if (IsFlexOp(registration->custom_name)) { in Prepare()
Dtest_util.cc171 reg.custom_name = tflite_name; in AddTfOp()
/external/tensorflow/tensorflow/lite/c/
Dc_api_internal.h520 const char* custom_name; member
/external/tensorflow/tensorflow/lite/core/
Dsubgraph.cc32 registration.custom_name in ReportOpError()
33 ? registration.custom_name in ReportOpError()
/external/tensorflow/tensorflow/lite/g3doc/performance/
Ddelegates.md93 kernel_registration.custom_name = "MyDelegate";