| Commit message (Collapse) | Author | Age |
|
|
|
|
|
|
|
|
|
|
| |
when the if then/else body of If or the While body funcs do not have stateful
ops.
The are lowered to the same XLA ops.
One use case is in the S4TF compiler: https://github.com/apple/swift/pull/18509
PiperOrigin-RevId: 207977126
|
|
|
|
| |
PiperOrigin-RevId: 206684358
|
|
|
|
| |
PiperOrigin-RevId: 205239285
|
|
|
|
|
|
|
|
|
|
| |
chain as
we don't have to link protobuf libraries just to use basic hash functions. The case
for deterministic serialization of protocol buffers if very specific and can be
handled by a new header file.
PiperOrigin-RevId: 188366713
|
|
|
|
| |
PiperOrigin-RevId: 185049319
|
|
|
|
| |
PiperOrigin-RevId: 182263576
|
|
|
|
| |
PiperOrigin-RevId: 180301735
|
|
|
|
| |
PiperOrigin-RevId: 178909147
|
|
|
|
| |
PiperOrigin-RevId: 178759398
|
|
|
|
|
|
| |
This fixes a bug where two calls to the same stateful function will erroneously be eliminated as common subexpressions. It is also a step towards pruning nodes from function bodies, which is necessary for a variety of `Dataset` optimizations.
PiperOrigin-RevId: 178675527
|
|
|
|
|
|
|
|
|
| |
Note that this creates a small change in behavior with the C API
enabled, since previously not all Python Operations had an OpDef
(op_def() returns None). With the C API enabled, op_def() always
returns an OpDef.
PiperOrigin-RevId: 172634411
|
|
|
|
|
|
|
| |
void* is more common (and more convenient) for passing in serialized
protobufs in c_api.h.
PiperOrigin-RevId: 170386128
|
|
|
|
| |
PiperOrigin-RevId: 170379490
|
|
|
|
| |
PiperOrigin-RevId: 170147211
|
|
|
|
| |
PiperOrigin-RevId: 169421145
|
|
|
|
| |
PiperOrigin-RevId: 169337159
|
|
|
|
| |
PiperOrigin-RevId: 169304057
|
|
|
|
| |
PiperOrigin-RevId: 169245946
|
|
|
|
|
|
|
|
|
|
| |
Also, change the internal representation of TF_Function and
rename TF_GraphAddFunction to TF_GraphAddFunctionCopy to make it
clear that a copy of the function is added to the graph. Any
subsequent modifications to the function will not be reflected
in the copy added to the graph.
PiperOrigin-RevId: 169187793
|
|
This change adds minimal functionality. Support for FunctionOptions,
attributes, output name rewriting, function name generation, etc is
comming next.
PiperOrigin-RevId: 167091238
|