Home
last modified time | relevance | path

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

/external/tensorflow/tensorflow/compiler/tf2xla/
Dxla_context.cc39 const char XlaContext::kXlaContextResourceName[] = "_xla_context";
43 /* static */ XlaContext& XlaContext::Get(const OpKernelContext* ctx) { in Get()
47 XlaContext* context; in Get()
57 void XlaContext::set_args(std::vector<XlaExpression> args) { in set_args()
61 XlaContext::XlaContext(XlaCompiler* compiler, xla::XlaBuilder* builder) in XlaContext() function in tensorflow::XlaContext
64 string XlaContext::DebugString() const { return "XLA JIT context"; } in DebugString()
66 void XlaContext::SetRetval(int index, const XlaExpression& expression) { in SetRetval()
73 XlaResource* XlaContext::AddResource(std::unique_ptr<XlaResource> resource) { in AddResource()
78 const xla::XlaComputation* XlaContext::GetOrCreateMax(const DataType type) { in GetOrCreateMax()
94 const xla::XlaComputation* XlaContext::GetOrCreateMin(const DataType type) { in GetOrCreateMin()
[all …]
Dxla_context.h40 class XlaContext : public ResourceBase {
43 static XlaContext& Get(const OpKernelContext* ctx);
47 XlaContext(XlaCompiler* compiler, xla::XlaBuilder* builder);
138 TF_DISALLOW_COPY_AND_ASSIGN(XlaContext);
Dxla_compiler.h44 class XlaContext; variable
433 XlaContext* context,
Dgraph_compiler.cc226 XlaContext& context = XlaContext::Get(op_context); in CompileFunctionalNode()
Dxla_compilation_device.cc94 auto* b = XlaContext::Get(context).builder(); in Compute()
Dxla_compiler.cc115 Status ExecuteGraph(XlaContext* xla_context, std::unique_ptr<Graph> graph, in ExecuteGraph()
132 step_container->name(), XlaContext::kXlaContextResourceName, in ExecuteGraph()
704 bool use_tuple_arg, xla::XlaBuilder* builder, XlaContext* context, in BuildArguments()
1069 XlaContext* context = new XlaContext(this, &builder); in CompileGraph()
Dxla_op_kernel.h63 XlaContext* xla_context() const;
Dxla_op_kernel.cc39 XlaContext* XlaOpKernelContext::xla_context() const { in xla_context()
40 return &XlaContext::Get(context_); in xla_context()