Home
last modified time | relevance | path

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

12

/external/tensorflow/tensorflow/lite/
Dutil.cc44 bool IsFlexOp(const char* custom_name) { in IsFlexOp() argument
45 return custom_name && strncmp(custom_name, kFlexCustomCodePrefix, in IsFlexOp()
169 registration.custom_name) { in GetOpNameByRegistration()
170 result += " " + std::string(registration.custom_name); in GetOpNameByRegistration()
Dmutable_op_resolver_test.cc154 reg->custom_name = "UPDATED"; in TEST()
155 resolver.AddCustom(reg->custom_name, reg); in TEST()
157 resolver.FindOp(reg->custom_name, 1); in TEST()
163 EXPECT_EQ(found_registration->custom_name, "UPDATED"); in TEST()
170 reg->custom_name = "UPDATED"; in TEST()
182 EXPECT_EQ(resolver1.FindOp(BuiltinOperator_ADD, 1)->custom_name, nullptr); in TEST()
Dmutable_op_resolver.cc43 new_registration.custom_name = nullptr; in AddBuiltin()
63 new_registration.custom_name = name; in AddCustom()
Doptional_debug_tools.cc131 if (reg.custom_name != nullptr) { in PrintInterpreterState()
133 reg.custom_name); in PrintInterpreterState()
Dutil_test.cc114 registration.custom_name = "TestOp"; in TEST()
119 registration.custom_name = "TestDelegate"; in TEST()
Dutil.h49 bool IsFlexOp(const char* custom_name);
/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/delegates/coreml/builders/
Dtest_util.mm48 XCTAssertTrue(node_and_reg->second.custom_name != nullptr);
50 node_and_reg->second.custom_name ==
62 if (node_and_reg->second.custom_name != nullptr) {
64 node_and_reg->second.custom_name !=
/external/tensorflow/tensorflow/lite/tools/serialization/
Dwriter_lib.cc40 const char* custom_name = it.custom.empty() ? nullptr : it.custom.c_str(); in CreateOpCodeTableImpl() local
42 *fbb, static_cast<BuiltinOperator>(it.builtin), custom_name)); in CreateOpCodeTableImpl()
98 if (!registration->custom_name) { in ExportOperators()
103 GetOpCodeForCustom(registration->custom_name); in ExportOperators()
120 if (!registration.custom_name) { in ExportOperators()
128 auto custom_writer = custom_op_to_writer_.find(registration.custom_name); in ExportOperators()
319 const std::string& custom_name, CustomWriter custom_writer) { in RegisterCustomWriter() argument
320 if (custom_op_to_writer_.find(custom_name) != custom_op_to_writer_.end()) { in RegisterCustomWriter()
323 custom_op_to_writer_.insert(std::make_pair(custom_name, custom_writer)); in RegisterCustomWriter()
Dwriter_lib.h105 TfLiteStatus RegisterCustomWriter(const std::string& custom_name,
174 int GetOpCodeForCustom(const std::string& custom_name) { in GetOpCodeForCustom() argument
177 std::make_pair(custom_name, opcodes_->size())); in GetOpCodeForCustom()
179 opcodes_->push_back({BuiltinOperator_CUSTOM, custom_name}); in GetOpCodeForCustom()
/external/tensorflow/tensorflow/lite/delegates/hexagon/builders/tests/
Dhexagon_delegate_op_model.h70 ASSERT_TRUE(node_and_reg->second.custom_name != nullptr); in ApplyDelegateAndInvoke()
71 ASSERT_STREQ(kDelegateName, node_and_reg->second.custom_name); in ApplyDelegateAndInvoke()
/external/python/cpython3/Lib/idlelib/idle_test/
Dtest_configdialog.py330 eq(d.custom_name.get(), '- no custom themes -')
341 eq(d.custom_name.get(), 'test1')
352 eq(d.custom_name.get(), 'test2')
575 eq(d.custom_name.get(), gntn.result)
590 d.custom_name.set('Python')
645 eq(d.custom_name.get(), first_new)
754 d.custom_name.set(theme_name)
773 eq(d.custom_name.get(), theme_name2)
779 d.custom_name.set(theme_name2)
786 eq(d.custom_name.get(), '- no custom themes -')
[all …]
/external/tensorflow/tensorflow/lite/core/
Dsubgraph.cc73 registration.custom_name in ReportOpError()
74 ? registration.custom_name in ReportOpError()
148 const char* const custom_name = op_reg.custom_name; in GetTFLiteOpName() local
149 return custom_name ? custom_name : kUnknownCustomOpName; in GetTFLiteOpName()
152 op_reg.custom_name) { in GetTFLiteOpName()
153 return op_reg.custom_name; in GetTFLiteOpName()
395 registration.custom_name ? registration.custom_name : "unknown", in ReplaceNodeSubsetsWithDelegateKernels()
884 if (IsFlexOp(op_reg.custom_name)) { in OpPrepare()
890 op_reg.custom_name ? op_reg.custom_name : "UnknownOp"); in OpPrepare()
/external/tensorflow/tensorflow/lite/delegates/
Ddelegate_test.cc58 EXPECT_EQ(node_and_reg->second.custom_name, in TEST_F()
59 delegate_->FakeFusedRegistration().custom_name); in TEST_F()
267 ASSERT_EQ(node_and_reg->second.custom_name, in TEST_F()
268 delegate_->FakeFusedRegistration().custom_name); in TEST_F()
362 ASSERT_EQ(node_and_reg->second.custom_name, in TEST_F()
363 delegate2_->FakeFusedRegistration().custom_name); in TEST_F()
786 EXPECT_EQ(node_and_reg->second.custom_name, in TEST_F()
787 delegate_->FakeFusedRegistration().custom_name); in TEST_F()
803 EXPECT_NE(node_and_reg->second.custom_name, in TEST_F()
804 delegate_->FakeFusedRegistration().custom_name); in TEST_F()
Ddelegate_test_util.cc46 reg.custom_name = "my_add"; in AddOpRegistration()
155 TFLITE_CHECK_EQ(strcmp(reg->custom_name, "my_add"), 0); in SimpleDelegate()
172 TFLITE_CHECK_EQ(strcmp(reg->custom_name, "my_add"), 0); in SimpleDelegate()
249 reg.custom_name = "fake_fused_op"; in FakeFusedRegistration()
466 reg.custom_name = "fake_fp16_add_op"; in FakeFusedRegistration()
/external/python/cpython3/Lib/idlelib/
Dconfigdialog.py834 self.custom_name = tracers.add(
923 frame_theme, self.custom_name, None, command=None)
985 self.custom_name.set('- no custom themes -')
1028 value = self.custom_name.get()
1127 theme = self.custom_name.get()
1174 theme_name = self.custom_name.get()
1267 theme = self.custom_name.get()
1321 theme_name = self.custom_name.get()
1439 self.custom_name = tracers.add(
1481 frames[0], self.custom_name, None, command=None)
[all …]
/external/tensorflow/tensorflow/lite/java/src/test/native/
Dinterpreter_test_jni.cc55 .custom_name = "", in Java_org_tensorflow_lite_InterpreterTest_getNativeHandleForDelegate()
/external/perfetto/protos/perfetto/metrics/android/
Dprocess_metadata.proto21 // Process name. Usually, cmdline or <package_name>(:<custom_name>)?.
/external/tensorflow/tensorflow/lite/micro/kernels/cmsis_nn/
Dfully_connected.cc280 fully_connected_registration.custom_name = nullptr; in Register_FULLY_CONNECTED()
292 fully_connected_registration.custom_name = nullptr; in Register_FULLY_CONNECTED_INT8()
/external/tensorflow/tensorflow/lite/python/interpreter_wrapper/
Dinterpreter_wrapper.cc526 const char* custom_name = node_registration->custom_name; in NodeName() local
527 op_name = custom_name ? custom_name : "UnknownCustomOp"; in NodeName()
/external/tensorflow/tensorflow/lite/delegates/flex/
Ddelegate.cc89 return IsFlexOp(registration->custom_name); in IsNodeSupportedByDelegate()
/external/tensorflow/tensorflow/lite/delegates/utils/
Dsimple_delegate.cc35 kernel_registration.custom_name = delegate->Name(); in GetDelegateKernelRegistration()
Dsimple_delegate_test.cc72 EXPECT_STREQ("DummyDelegate", node_and_reg->second.custom_name); in TEST_F()
/external/tensorflow/tensorflow/lite/micro/
Dmicro_mutable_op_resolver.h60 (strcmp(registration.custom_name, op) == 0)) { in FindOp()
108 new_registration->custom_name = name; in AddCustom()
/external/libcups/cups/
Dppd.c445 char custom_name[PPD_MAX_NAME]; in _ppdOpen() local
1365 strlcpy(custom_name, "CustomPageSize", sizeof(custom_name)); in _ppdOpen()
1367 snprintf(custom_name, sizeof(custom_name), "Custom%s", name); in _ppdOpen()
1369 if ((custom_attr = ppdFindAttr(ppd, custom_name, "True")) != NULL) in _ppdOpen()
1471 snprintf(custom_name, sizeof(custom_name), "Custom%s", name); in _ppdOpen()
1473 if ((custom_attr = ppdFindAttr(ppd, custom_name, "True")) != NULL) in _ppdOpen()

12