Home
last modified time | relevance | path

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

/external/tensorflow/tensorflow/core/framework/
Dkernel_def_builder_test.cc26 const KernelDef* def = KernelDefBuilder("A").Device(DEVICE_CPU).Build(); in TEST()
27 KernelDef expected; in TEST()
35 const KernelDef* def = KernelDefBuilder("B") in TEST()
39 KernelDef expected; in TEST()
76 const KernelDef* def = KernelDefBuilder("E") in TEST()
81 KernelDef expected; in TEST()
Dkernel_def_builder.h27 class KernelDef; variable
73 const KernelDef* Build();
76 KernelDef* kernel_def_;
Dkernel_def_builder.cc24 kernel_def_ = new KernelDef; in KernelDefBuilder()
74 const KernelDef* KernelDefBuilder::Build() { in Build()
75 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.proto11 message KernelDef { message
45 repeated KernelDef kernel = 1;
Dkernel_def_util.h26 Status KernelAttrsMatch(const KernelDef& kernel_def, AttrSlice attrs,
Dop_kernel.cc942 KernelRegistration(const KernelDef& d, StringPiece c, in KernelRegistration()
946 const KernelDef def;
1068 void OpKernelRegistrar::InitInternal(const KernelDef* kernel_def, in InitInternal()
1148 const KernelDef** def, string* kernel_class_name) { in FindKernelDef()
1215 return GetFilteredRegisteredKernels([](const KernelDef& k) { return true; }); in GetAllRegisteredKernels()
1219 const std::function<bool(const KernelDef&)>& predicate) { in GetFilteredRegisteredKernels()
1224 const KernelDef& kernel_def = p.second.def; in GetFilteredRegisteredKernels()
1233 auto op_pred = [op_name](const KernelDef& k) { return k.op() == op_name; }; in GetRegisteredKernelsForOp()
1350 const KernelDef& kernel_def(key_registration.second.def); in ValidateKernelRegistrations()
Dkernel_def_util.cc36 Status KernelAttrsMatch(const KernelDef& kernel_def, AttrSlice attrs, in KernelAttrsMatch()
Dop_kernel.h1422 const KernelDef** def, string* kernel_class_name);
1433 const std::function<bool(const KernelDef&)>& predicate);
1454 OpKernelRegistrar(const KernelDef* kernel_def, StringPiece kernel_class_name, in OpKernelRegistrar()
1465 OpKernelRegistrar(const KernelDef* kernel_def, StringPiece kernel_class_name, in OpKernelRegistrar()
1485 void InitInternal(const KernelDef* kernel_def, StringPiece kernel_class_name,
Dmemory_types.cc84 const KernelDef* kdef = nullptr; in MemoryTypesForNode()
Dop_kernel_test.cc504 const KernelDef* kernel_def = nullptr;
1003 auto has_name_test1 = [](const KernelDef& k) { return k.op() == "Test1"; }; in TEST()
1024 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.cc253 std::unique_ptr<KernelDef> kdef(new KernelDef); in RegisterCompilationKernels()
263 KernelDef::AttrConstraint* attr_constraint = kdef->add_constraint(); in RegisterCompilationKernels()
317 new KernelDef(*kdef), "XlaJitOp", op_registration->factory)); in RegisterCompilationKernels()
324 std::vector<const KernelDef*> XlaOpRegistry::DeviceKernels( in DeviceKernels()
329 std::vector<const KernelDef*> kernels; in DeviceKernels()
335 for (const std::unique_ptr<KernelDef>& k : it->second.kernel_defs) { in DeviceKernels()
Dxla_op_registry.h104 typedef bool (*BackendOpFilter)(KernelDef* kdef);
137 static std::vector<const KernelDef*> DeviceKernels(
193 std::vector<std::unique_ptr<KernelDef>> kernel_defs;
Dxla_gpu_backend.cc22 bool GpuOpFilter(KernelDef* kdef) { in GpuOpFilter()
Dxla_cpu_backend.cc22 bool CpuOpFilter(KernelDef* kdef) { in CpuOpFilter()
Dtf2xla_util.h59 KernelDef* kdef);
Dtf2xla_util.cc529 KernelDef* kdef) { in AddDtypeToKernelDefConstraint()
530 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/core/grappler/optimizers/
Dpin_to_host_optimizer.cc72 const NodeDef& node, const KernelDef** kdef) { in TryFindKernelDef()
74 const KernelDef* kernel = nullptr; in TryFindKernelDef()
157 const KernelDef* kernel = nullptr; in IsNodeOutputPortHostFriendly()
194 const KernelDef* kernel = nullptr; in IsNodeInputPortHostFriendly()
/external/tensorflow/tensorflow/compiler/jit/
Dxla_device.cc530 for (const KernelDef* jit_def : XlaOpRegistry::DeviceKernels( in RegisterXlaDeviceKernels()
533 KernelDef* def = new KernelDef(*jit_def); in RegisterXlaDeviceKernels()
Dxla_interpreter_device.cc78 static bool OpFilter(KernelDef* kdef) { return true; } in OpFilter()
/external/tensorflow/tensorflow/core/debug/
Ddebug_graph_utils.cc274 const KernelDef* kdef; in CreateCopyNode()
444 const KernelDef* kdef; in CreateDebugNode()
/external/tensorflow/tensorflow/core/common_runtime/
Dconstant_folding.cc533 const KernelDef* kdef; in ReplaceTensorWithConstant()