Home
last modified time | relevance | path

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

/external/tensorflow/tensorflow/compiler/tf2xla/
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()
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()
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.cc264 std::unique_ptr<KernelDef> kdef(new KernelDef); in RegisterCompilationKernels() local
265 kdef->set_op(op_registration->name); in RegisterCompilationKernels()
266 kdef->set_device_type(backend.first); in RegisterCompilationKernels()
267 kdef->set_label(op_registration->label); in RegisterCompilationKernels()
275 KernelDef::AttrConstraint* attr_constraint = kdef->add_constraint(); in RegisterCompilationKernels()
325 !backend.second.op_filter(kdef.get())) { in RegisterCompilationKernels()
332 new KernelDef(*kdef), "XlaJitOp", op_registration->factory)); in RegisterCompilationKernels()
333 backend.second.kernel_defs.push_back(std::move(kdef)); in RegisterCompilationKernels()
Dtf2xla_util.h60 KernelDef* kdef);
Dxla_op_registry.h139 typedef bool (*BackendOpFilter)(KernelDef* kdef);
Dtf2xla_util.cc528 KernelDef* kdef) { in AddDtypeToKernelDefConstraint() argument
529 for (KernelDef::AttrConstraint& constraint : *kdef->mutable_constraint()) { in AddDtypeToKernelDefConstraint()
/external/tensorflow/tensorflow/core/tpu/
Dtpu_node_device_util.cc24 bool TpuOpFilter(KernelDef* kdef) { in TpuOpFilter() argument
25 StringPiece op(kdef->op()); in TpuOpFilter()
29 AddDtypeToKernelDefConstraint("dtype", DT_STRING, kdef); in TpuOpFilter()
32 AddDtypeToKernelDefConstraint("T", DT_STRING, kdef); in TpuOpFilter()
Dtpu_node_device_util.h26 bool TpuOpFilter(KernelDef* kdef);
/external/tensorflow/tensorflow/core/framework/
Dmemory_types.cc91 const KernelDef* kdef = nullptr; in MemoryTypesForNode() local
93 FindKernelDef(device_type, ndef, &kdef, nullptr /* kernel_class_name */); in MemoryTypesForNode()
127 const auto& from_proto = kdef->host_memory_arg(); in MemoryTypesForNode()
/external/tensorflow/tensorflow/core/grappler/optimizers/
Dpin_to_host_optimizer.cc74 const NodeDef& node, const KernelDef** kdef) { in TryFindKernelDef() argument
79 if (kdef) { in TryFindKernelDef()
80 *kdef = kernel; in TryFindKernelDef()
/external/tensorflow/tensorflow/core/debug/
Ddebug_graph_utils.cc307 const KernelDef* kdef; in CreateCopyNode() local
343 Status s = FindKernelDef(device_type, node_def, &kdef, nullptr); in CreateCopyNode()
477 const KernelDef* kdef; in CreateDebugNode() local
497 if (!FindKernelDef(DeviceType(device.device_type()), node_def, &kdef, nullptr) in CreateDebugNode()
/external/tensorflow/tensorflow/core/common_runtime/
Dconstant_folding.cc560 const KernelDef* kdef; in ReplaceTensorWithConstant() local
561 if (!FindKernelDef(device_type, def, &kdef, nullptr).ok()) { in ReplaceTensorWithConstant()