aboutsummaryrefslogtreecommitdiffhomepage
path: root/tensorflow/compiler/xla/service/hlo_matchers_test.cc
Commit message (Collapse)AuthorAge
* Remove tile shape from HloShardingGravatar A. Unique TensorFlower2018-08-08
| | | | | | | | The tile shape can be deduced based on the tile assignment and then HLO shape and by not storing it in the sharding we can give more flexibility to the compiler to decide the data layout. PiperOrigin-RevId: 207860794
* [TF:XLA] Split literal_util into {literal, literal_util}.Gravatar Kay Zhu2018-07-03
| | | | | | | | | Currently Literal classes sits in literal_util.{h,cc} instead of literal.{h,cc}. It also contains helper functions that are better fit to be their own separate class/namespace. This change starts this process by moving most static factory methods to LiteralUtil namespace. PiperOrigin-RevId: 203217065
* [XLA] Move xla/tools/parser/* into xla/service.Gravatar Justin Lebar2018-06-01
| | | | | | | | Now that we're using the parser inside of xla/service, it's awkward for it to live inside of xla/tools, because everything else in there is a standalone tool. We've already had one person be confused by this. PiperOrigin-RevId: 198935921
* HloSharding parsing from string, used by new Sharding HloMatcher for ease of ↵Gravatar A. Unique TensorFlower2018-05-23
| | | | | | use. PiperOrigin-RevId: 197825588
* Remove uses of the kTransposeDot fusionGravatar Sanjoy Das2018-05-07
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | I didn't remove the enum itself, but after this change removing the enum should be a simple NFC change (famous last words!). This will make it easier to implement BatchDot on CPU. The change removes usages of kTransposeDot by: - Teaching TransposeFolding to "fuse" transposes into dots by flipping the lhs_contracting_dims/rhs_contracting_dims fields. - Replacing the notion of transpose_lhs/transpose_rhs in the IR emitters with "has a non-canonical LHS contraction dimension"/"has a non-canonical RHS contraction dimension" where the canonical LHS and RHS contraction dims [0] are 1 and 0. Some tests were getting away with creating Dot instructions with their dimensions numbers unset. I've fixed these to create canonical dot operations instead. It is possible (but hard to tell without trying) that some of the IR emission logic and Eigen runtime calls can now be simplified further. For instance, instead of passing in a `transpose_lhs` and `transpose_rhs` to the Eigen GEMM routines, we could instead pass in the LHS and RHS contraction dimensions directly. [0] See HloInstruction::CreateCanonicalDot. PiperOrigin-RevId: 195514907
* Support matching against shape string in HLO testing matchersGravatar A. Unique TensorFlower2018-04-26
| | | | | | | | After this change a test can use op::Shape("f32[7,11]") instead of the longer and harder to read op::Shape(ShapeUtil::MakeShape(F32, {7, 11})) format. PiperOrigin-RevId: 194373704
* Introduce a new HLO shape and sharding matcher.Gravatar A. Unique TensorFlower2018-04-24
| | | | | | | These new matchers can be used in tests in combination to the existing HLO opcode matchers to better verify a generated HLO graph. PiperOrigin-RevId: 194082100
* [XLA] (Re-land) Add HLO matcher for CustomCall that accepts a call target.Gravatar Justin Lebar2018-01-26
| | | | | | Now with less build breakage! PiperOrigin-RevId: 183458987
* Automated g4 rollback of changelist 183296506Gravatar Justin Lebar2018-01-25
| | | | PiperOrigin-RevId: 183312680
* [XLA] Add HLO matcher for CustomCall that accepts a call target.Gravatar Justin Lebar2018-01-25
| | | | PiperOrigin-RevId: 183296506
* [XLA] Fix the parameter instruction printing issueGravatar A. Unique TensorFlower2017-04-20
| | | | | | | | Append the parameter number to the fusion parameter name, and use the parameter name rather the instruction name in creating the new parameter. Show the paramameter number when printing out parameter instructions. Change: 153752424
* Added and using GMock matcher for HloInstructionGravatar A. Unique TensorFlower2017-04-14
Change: 153159175