Home
last modified time | relevance | path

Searched refs:kdef (Results 1 – 12 of 12) sorted by relevance

/external/tensorflow/tensorflow/compiler/tf2xla/
Dxla_gpu_backend.cc22 bool GpuOpFilter(KernelDef* kdef) { in GpuOpFilter() argument
23 if (kdef->op() == "Const") { in GpuOpFilter()
24 AddDtypeToKernelDefConstraint("dtype", DT_STRING, kdef); in GpuOpFilter()
26 if (kdef->op() == "Assert") { in GpuOpFilter()
27 AddDtypeToKernelDefConstraint("T", DT_STRING, kdef); in GpuOpFilter()
Dxla_cpu_backend.cc22 bool CpuOpFilter(KernelDef* kdef) { in CpuOpFilter() argument
23 if (kdef->op() == "Const") { in CpuOpFilter()
24 AddDtypeToKernelDefConstraint("dtype", DT_STRING, kdef); in CpuOpFilter()
26 if (kdef->op() == "Assert") { in CpuOpFilter()
27 AddDtypeToKernelDefConstraint("T", DT_STRING, kdef); in CpuOpFilter()
Dtf2xla_supported_ops.cc48 for (const KernelDef* kdef : kdefs) { in PrintSupportedOps() local
50 for (const KernelDef::AttrConstraint& constraint : kdef->constraint()) { in PrintSupportedOps()
59 std::cout << "`" << kdef->op() << "` | " in PrintSupportedOps()
Dxla_op_registry.cc253 std::unique_ptr<KernelDef> kdef(new KernelDef); in RegisterCompilationKernels() local
254 kdef->set_op(op_registration->name); in RegisterCompilationKernels()
255 kdef->set_device_type(backend.first); in RegisterCompilationKernels()
263 KernelDef::AttrConstraint* attr_constraint = kdef->add_constraint(); in RegisterCompilationKernels()
310 !backend.second.op_filter(kdef.get())) { in RegisterCompilationKernels()
317 new KernelDef(*kdef), "XlaJitOp", op_registration->factory)); in RegisterCompilationKernels()
318 backend.second.kernel_defs.push_back(std::move(kdef)); in RegisterCompilationKernels()
Dtf2xla_util.h59 KernelDef* kdef);
Dxla_op_registry.h104 typedef bool (*BackendOpFilter)(KernelDef* kdef);
Dtf2xla_util.cc529 KernelDef* kdef) { in AddDtypeToKernelDefConstraint() argument
530 for (KernelDef::AttrConstraint& constraint : *kdef->mutable_constraint()) { in AddDtypeToKernelDefConstraint()
/external/tensorflow/tensorflow/core/framework/
Dmemory_types.cc84 const KernelDef* kdef = nullptr; in MemoryTypesForNode() local
86 FindKernelDef(device_type, ndef, &kdef, nullptr /* kernel_class_name */); in MemoryTypesForNode()
118 const auto& from_proto = kdef->host_memory_arg(); in MemoryTypesForNode()
/external/tensorflow/tensorflow/core/grappler/optimizers/
Dpin_to_host_optimizer.cc72 const NodeDef& node, const KernelDef** kdef) { in TryFindKernelDef() argument
77 if (kdef) { in TryFindKernelDef()
78 *kdef = kernel; in TryFindKernelDef()
/external/tensorflow/tensorflow/core/debug/
Ddebug_graph_utils.cc274 const KernelDef* kdef; in CreateCopyNode() local
310 Status s = FindKernelDef(device_type, node_def, &kdef, nullptr); in CreateCopyNode()
444 const KernelDef* kdef; in CreateDebugNode() local
464 if (!FindKernelDef(DeviceType(device.device_type()), node_def, &kdef, nullptr) in CreateDebugNode()
/external/tensorflow/tensorflow/compiler/jit/
Dxla_interpreter_device.cc78 static bool OpFilter(KernelDef* kdef) { return true; } in OpFilter() argument
/external/tensorflow/tensorflow/core/common_runtime/
Dconstant_folding.cc533 const KernelDef* kdef; in ReplaceTensorWithConstant() local
534 if (!FindKernelDef(device_type, def, &kdef, nullptr).ok()) { in ReplaceTensorWithConstant()