Commit 9abfbf99 authored by Peter Hawkins's avatar Peter Hawkins Committed by TensorFlower Gardener
Browse files

[TF:XLA] Change XlaCompilationCache to accept XlaCompiler::Arguments in most...

[TF:XLA] Change XlaCompilationCache to accept XlaCompiler::Arguments in most cases rather than parsing an OpKernelContext.

Build the compilation cache signature from the XlaCompiler::Arguments, rather than building it inside the cache. Add a helper method XlaComputationLaunchContext::BuildXlaCompilerArguments that builds the necessary XlaCompiler::Arguments.

Fix a bug in XlaCompilationCache::Signature::operator==, where only the contents of a tensor were compared for equality, not the shapes.

Remove code that reasons about OpKernelContexts in XlaCompiler::CompileSingleOp, instead passing the specific information required.

PiperOrigin-RevId: 220373606
parent 60aa63b6
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment