Home
last modified time | relevance | path

Searched refs:XlaContext (Results 1 – 9 of 9) sorted by relevance

/external/tensorflow/tensorflow/compiler/tf2xla/
Dxla_context.cc38 const char XlaContext::kXlaContextResourceName[] = "_xla_context";
42 /* static */ XlaContext& XlaContext::Get(const OpKernelContext* ctx) { in Get()
46 XlaContext* context; in Get()
56 void XlaContext::set_args(std::vector<XlaExpression> args) { in set_args()
60 XlaContext::XlaContext(XlaCompiler* compiler, xla::XlaBuilder* builder, in XlaContext() function in tensorflow::XlaContext
70 string XlaContext::DebugString() const { return "XLA JIT context"; } in DebugString()
72 void XlaContext::SetRetval(int index, const XlaExpression& expression) { in SetRetval()
80 XlaResource* XlaContext::AddResource(std::unique_ptr<XlaResource> resource) { in AddResource()
85 const xla::XlaComputation* XlaContext::GetOrCreateMax(const DataType type) { in GetOrCreateMax()
101 const xla::XlaComputation* XlaContext::GetOrCreateMin(const DataType type) { in GetOrCreateMin()
[all …]
Dxla_context.h41 class XlaContext : public ResourceBase {
44 static XlaContext& Get(const OpKernelContext* ctx);
48 XlaContext(XlaCompiler* compiler, xla::XlaBuilder* builder,
151 TF_DISALLOW_COPY_AND_ASSIGN(XlaContext);
Dxla_compilation_device.cc91 OpKernel* op_kernel, XlaContext& context) { in AttachLocationToMetadata()
105 XlaContext& xla_context = XlaContext::Get(context); in Compute()
Dxla_compiler.h46 class XlaContext; variable
306 XlaContext* context,
Dgraph_compiler.cc233 XlaContext& context = XlaContext::Get(op_context); in CompileFunctionalNode()
Dxla_op_kernel.h66 XlaContext* xla_context() const;
Dxla_compiler.cc122 Status ExecuteGraph(XlaContext* xla_context, std::unique_ptr<Graph> graph, in ExecuteGraph()
139 XlaContext::kXlaContextResourceName, in ExecuteGraph()
955 bool use_tuple_arg, xla::XlaBuilder* builder, XlaContext* context, in BuildArguments()
1312 XlaContext* context = new XlaContext(this, &builder, graph.get()); in CompileGraph()
Dxla_op_kernel.cc40 XlaContext* XlaOpKernelContext::xla_context() const { in xla_context()
41 return &XlaContext::Get(context_); in xla_context()
/external/tensorflow/tensorflow/compiler/mlir/xla/transforms/
Dlegalize_tf_with_tf2xla.cc344 tensorflow::XlaContext* context_; // Ref-counted.
358 context_ = new tensorflow::XlaContext(/*compiler=*/nullptr, &hlo_builder_, in PrepareParams()
380 tensorflow::XlaContext::kXlaContextResourceName, context_); in PrepareParams()