Home
last modified time | relevance | path

Searched refs:KernelDef (Results 1 – 25 of 26) sorted by relevance

12

/external/tensorflow/tensorflow/core/framework/
Dkernel_def_builder_test.cc27 const KernelDef* def = KernelDefBuilder("A").Device(DEVICE_CPU).Build(); in TEST()
28 KernelDef expected; in TEST()
36 const KernelDef* def = KernelDefBuilder("B") in TEST()
40 KernelDef expected; in TEST()
77 const KernelDef* def = KernelDefBuilder("B") in TEST()
81 KernelDef expected; in TEST()
118 const KernelDef* def = KernelDefBuilder("B") in TEST()
122 KernelDef expected; in TEST()
159 const KernelDef* def = KernelDefBuilder("E") in TEST()
164 KernelDef expected; in TEST()
Dkernel_def_builder.h27 class KernelDef; variable
84 const KernelDef* Build();
87 KernelDef* kernel_def_;
Dkernel_def_builder.cc23 kernel_def_ = new KernelDef; in KernelDefBuilder()
144 const KernelDef* KernelDefBuilder::Build() { in Build()
145 KernelDef* r = kernel_def_; in Build()
Dkernel_def_util_test.cc33 KernelDef KernelDefFromText(const string& text) { in KernelDefFromText()
34 KernelDef kernel_def; in KernelDefFromText()
Dkernel_def.proto13 message KernelDef { message
47 repeated KernelDef kernel = 1;
Dkernel_def_util.h26 Status KernelAttrsMatch(const KernelDef& kernel_def, AttrSlice attrs,
Dop_kernel.cc1120 KernelRegistration(const KernelDef& d, StringPiece c, in KernelRegistration()
1124 const KernelDef def;
1256 void OpKernelRegistrar::InitInternal(const KernelDef* kernel_def, in InitInternal()
1411 const KernelDef** def, string* kernel_class_name) { in FindKernelDef()
1446 const KernelDef** def, string* kernel_class_name) { in FindKernelDef()
1532 return GetFilteredRegisteredKernels([](const KernelDef& k) { return true; }); in GetAllRegisteredKernels()
1536 const std::function<bool(const KernelDef&)>& predicate) { in GetFilteredRegisteredKernels()
1542 const KernelDef& kernel_def = p.second.def; in GetFilteredRegisteredKernels()
1551 auto op_pred = [op_name](const KernelDef& k) { return k.op() == op_name; }; in GetRegisteredKernelsForOp()
1688 const KernelDef& kernel_def(key_registration.second.def); in ValidateKernelRegistrations()
Dop_kernel.h1456 << ([](::tensorflow::KernelDef const* kernel_def) { \
1503 const KernelDef** def, std::string* kernel_class_name);
1509 const KernelDef** def, std::string* kernel_class_name);
1520 const std::function<bool(const KernelDef&)>& predicate);
1541 OpKernelRegistrar(const KernelDef* kernel_def, StringPiece kernel_class_name, in OpKernelRegistrar()
1548 OpKernelRegistrar(const KernelDef* kernel_def, StringPiece kernel_class_name, in OpKernelRegistrar()
1564 void InitInternal(const KernelDef* kernel_def, StringPiece kernel_class_name,
Dkernel_def_util.cc36 Status KernelAttrsMatch(const KernelDef& kernel_def, AttrSlice attrs, in KernelAttrsMatch()
Dmemory_types.cc91 const KernelDef* kdef = nullptr; in MemoryTypesForNode()
Dop_kernel_test.cc579 const KernelDef* kernel_def = nullptr;
1112 auto has_name_test1 = [](const KernelDef& k) { return k.op() == "Test1"; }; in TEST()
1133 auto has_name_test1 = [](const KernelDef& k) { return k.op() == "Test1"; }; in TEST()
/external/tensorflow/tensorflow/compiler/tf2xla/
Dtf2xla_supported_ops.cc38 std::vector<const KernelDef*> kdefs = in PrintSupportedOps()
43 [](const KernelDef* a, const KernelDef* b) { return a->op() < b->op(); }); in PrintSupportedOps()
48 for (const KernelDef* kdef : kdefs) { in PrintSupportedOps()
50 for (const KernelDef::AttrConstraint& constraint : kdef->constraint()) { in PrintSupportedOps()
Dxla_op_registry.cc264 std::unique_ptr<KernelDef> kdef(new KernelDef); in RegisterCompilationKernels()
275 KernelDef::AttrConstraint* attr_constraint = kdef->add_constraint(); in RegisterCompilationKernels()
332 new KernelDef(*kdef), "XlaJitOp", op_registration->factory)); in RegisterCompilationKernels()
339 std::vector<const KernelDef*> XlaOpRegistry::DeviceKernels( in DeviceKernels()
344 std::vector<const KernelDef*> kernels; in DeviceKernels()
350 for (const std::unique_ptr<KernelDef>& k : it->second.kernel_defs) { in DeviceKernels()
Dxla_op_registry.h139 typedef bool (*BackendOpFilter)(KernelDef* kdef);
176 static std::vector<const KernelDef*> DeviceKernels(
237 std::vector<std::unique_ptr<KernelDef>> kernel_defs;
Dxla_cpu_backend.cc22 bool CpuOpFilter(KernelDef* kdef) { in CpuOpFilter()
Dxla_gpu_backend.cc22 bool GpuOpFilter(KernelDef* kdef) { in GpuOpFilter()
Dtf2xla_util.h60 KernelDef* kdef);
Dtf2xla_util.cc528 KernelDef* kdef) { in AddDtypeToKernelDefConstraint()
529 for (KernelDef::AttrConstraint& constraint : *kdef->mutable_constraint()) { in AddDtypeToKernelDefConstraint()
/external/tensorflow/tensorflow/compiler/tf2xla/python/
Dxla_op_registry.clif1 from "third_party/tensorflow/core/framework/kernel_def_pyclif.h" import * # KernelDef
7 list<KernelDef>
/external/tensorflow/tensorflow/lite/delegates/flex/
Dallowlisted_flex_ops_test.cc28 auto is_cpu_kernel = [](const tensorflow::KernelDef& def) { in GetAllCpuKernels()
37 tensorflow::KernelDef kernel_def = kernel_list.kernel(i); in GetAllCpuKernels()
/external/tensorflow/tensorflow/core/grappler/optimizers/
Dpin_to_host_optimizer.cc74 const NodeDef& node, const KernelDef** kdef) { in TryFindKernelDef()
76 const KernelDef* kernel = nullptr; in TryFindKernelDef()
161 const KernelDef* kernel = nullptr; in IsNodeOutputPortHostFriendly()
198 const KernelDef* kernel = nullptr; in IsNodeInputPortHostFriendly()
/external/tensorflow/tensorflow/core/tpu/
Dtpu_node_device_util.h26 bool TpuOpFilter(KernelDef* kdef);
Dtpu_node_device_util.cc24 bool TpuOpFilter(KernelDef* kdef) { in TpuOpFilter()
/external/tensorflow/tensorflow/compiler/jit/
Dxla_device.cc581 for (const KernelDef* jit_def : XlaOpRegistry::DeviceKernels( in RegisterXlaDeviceKernels()
584 KernelDef* def = new KernelDef(*jit_def); in RegisterXlaDeviceKernels()
/external/tensorflow/tensorflow/core/debug/
Ddebug_graph_utils.cc307 const KernelDef* kdef; in CreateCopyNode()
477 const KernelDef* kdef; in CreateDebugNode()

12