Home
last modified time | relevance | path

Searched refs:XlaContext (Results 1 – 14 of 14) 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 /* static */ XlaContext& XlaContext::Get(const XlaOpKernelContext* ctx) { in Get()
61 void XlaContext::set_args(std::vector<XlaExpression> args) { in set_args()
65 XlaContext::XlaContext( in XlaContext() function in tensorflow::XlaContext
76 string XlaContext::DebugString() { return "TLA JIT context"; } in DebugString()
80 void XlaContext::AddRetval(int retval_index, DataType type, in AddRetval()
90 Status XlaContext::AddConstRetval(int retval_index, DataType dtype, in AddConstRetval()
107 xla::ComputationBuilder* XlaContext::builder() { return builder_; } in builder()
[all …]
Dxla_context.h39 class XlaContext : public ResourceBase {
42 static XlaContext& Get(const OpKernelContext* ctx);
43 static XlaContext& Get(const XlaOpKernelContext* ctx);
46 XlaContext(XlaCompiler* compiler, xla::ComputationBuilder* builder,
173 TF_DISALLOW_COPY_AND_ASSIGN(XlaContext);
Dxla_op_kernel.cc34 return XlaContext::Get(this).builder(); in builder()
309 XlaContext& xla_context = XlaContext::Get(context_); in ReadVariableInput()
432 XlaContext& xla_context = XlaContext::Get(context_); in AssignVariable()
442 return XlaContext::Get(context_).compiler(); in compiler()
462 return XlaContext::Get(context_).GetOrCreateMax(type); in GetOrCreateMax()
467 return XlaContext::Get(context_).GetOrCreateMin(type); in GetOrCreateMin()
472 return XlaContext::Get(context_).GetOrCreateAdd(type); in GetOrCreateAdd()
477 return XlaContext::Get(context_).GetOrCreateMul(type); in GetOrCreateMul()
Dgraph_compiler.h58 GraphCompiler(XlaContext* xla_context, XlaCompilationDevice* device, in GraphCompiler()
85 XlaContext* xla_context_;
Dxla_compiler.h33 class XlaContext; variable
316 XlaContext* context, std::vector<int>* arg_cores,
Dxla_compiler.cc295 Status ExecuteGraph(XlaContext* xla_context, std::unique_ptr<Graph> graph, in ExecuteGraph()
312 step_container->name(), XlaContext::kXlaContextResourceName, in ExecuteGraph()
429 bool use_tuple_arg, xla::ComputationBuilder* builder, XlaContext* context, in BuildArguments()
607 XlaContext* context = in CompileGraph()
608 new XlaContext(this, &builder, options_.allow_cpu_custom_calls, in CompileGraph()
Dgraph_compiler.cc223 XlaContext& context = XlaContext::Get(op_context); in CompileFunctionalNode()
Dxla_compilation_device.cc96 auto* b = XlaContext::Get(context).builder(); in Compute()
/external/tensorflow/tensorflow/compiler/tf2xla/kernels/
Dretval_op.cc57 XlaContext& tc = XlaContext::Get(ctx); in Compile()
Dsendrecv_ops.cc45 XlaCompiler* compiler = XlaContext::Get(ctx).compiler(); in Compile()
76 XlaCompiler* compiler = XlaContext::Get(ctx).compiler(); in Compile()
Dstack_ops.cc115 XlaContext& xc = XlaContext::Get(ctx); in Compile()
Darg_op.cc51 const XlaExpression& arg = XlaContext::Get(ctx).args()[index_]; in Compile()
Dindex_ops_cpu.cc71 OP_REQUIRES(ctx, XlaContext::Get(ctx).allow_cpu_custom_calls(), in Compile()
Dtensor_array_ops.cc173 XlaContext& xc = XlaContext::Get(ctx); in Compile()