commit | 163ee912d85b5dcf3f1be6d0e01d4923c11d0e7c | [log] [tgz] |
---|---|---|
author | Feng Liu <fengliuai@google.com> | Tue Mar 26 15:31:15 2019 -0700 |
committer | jpienaar <jpienaar@google.com> | Fri Mar 29 17:43:06 2019 -0700 |
tree | cfb3b547919c25e67cd7813a2c2fb4f42328bf4e | |
parent | ee37d27d461bfa26cb7d8229676ef2544ef2074a [diff] |
Add a trait to set the result type by attribute Before this CL, the result type of the pattern match results need to be as same as the first operand type, operand broadcast type or a generic tensor type. This CL adds a new trait to set the result type by attribute. For example, the TFL_ConstOp can use this to set the output type to its value attribute. PiperOrigin-RevId: 240441249