aboutsummaryrefslogtreecommitdiffhomepage
path: root/tensorflow/compiler/xla/service/pattern_matcher.h
Commit message (Collapse)AuthorAge
* Short-circuit AllOf as well. This fixes a crash in ConstantScalar, as itGravatar Tim Shen2018-09-24
| | | | | | uses Cast internally. PiperOrigin-RevId: 214356411
* Fix Hlo pattern matcher's AnyOf, so that a sub-pattern doesn't captureGravatar Tim Shen2018-09-24
| | | | | | | | when it's not matched. Also add invariant checking for AllOf. PiperOrigin-RevId: 214351269
* Ensure that no capture is done unless Match() return true. Otherwise theGravatar Tim Shen2018-09-21
| | | | | | | | | | | application that relies on such behavior is hard to get right. To implement this, we need to be careful about AllOf, so that no capture is done unless all sub-patterns succeed. This leads to the solution that we have to run all patterns twice, first time with no captures, and second time to capture. PiperOrigin-RevId: 214042307
* Simplify XLA pattern matcher to explicitly construct AllOf relations,Gravatar Tim Shen2018-09-21
| | | | | | instead of relying on individual patterns carrying around continuations. PiperOrigin-RevId: 214031269
* Add ConstantScalar, WithPredicate, Disjunction, and OpAnyOrder (where OpGravatar Tim Shen2018-09-18
| | | | | | is a commutative binary operator) to the XLA pattern matcher. PiperOrigin-RevId: 213543953
* [XLA] Add support for algebraic simplifications involving kIotaGravatar David Majnemer2018-08-28
| | | | PiperOrigin-RevId: 210634966
* [XLA] Use absl string types and functions instead of the TF versions.Gravatar Justin Lebar2018-08-23
| | | | | | | Unfortunately this has to be one big patch, because e.g. absl::StrCat doesn't accept a TF StringPiece, but as soon as we switch to absl::string_view, we have to switch away from all of the TF functions. PiperOrigin-RevId: 209957896
* Add GetTupleElement pattern matcher.Gravatar Mark Heffernan2018-07-02
| | | | | | Include variant which takes a int indicating which tuple index value to match. Also correct some matchers (send, etc) which had the wrong arity. PiperOrigin-RevId: 203053486
* Merge changes from github.Gravatar Akshay Modi2018-06-18
| | | | PiperOrigin-RevId: 201110240
* Automated g4 rollback of changelist 201011811Gravatar Akshay Modi2018-06-18
| | | | PiperOrigin-RevId: 201033171
* Merge changes from github.Gravatar Akshay Modi2018-06-18
| | | | PiperOrigin-RevId: 201011811
* [XLA] Add FusionKind matcher to pattern_matcher.h.Gravatar Justin Lebar2018-05-07
| | | | PiperOrigin-RevId: 195700319
* Automated g4 rollback of changelist 192180356Gravatar Dimitris Vardoulakis2018-04-18
| | | | PiperOrigin-RevId: 193427566
* [XLA] Fix arguments to IsSparseArray and IsDenseArrayGravatar A. Unique TensorFlower2018-04-17
| | | | PiperOrigin-RevId: 193238920
* [XLA] Pattern matcher for HLO, Shapes, LayoutsGravatar A. Unique TensorFlower2018-04-13
PiperOrigin-RevId: 192834129