| Commit message (Collapse) | Author | Age |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
1. Change Variant Decode to accept VariantTensorData (non-ref).
This should allow some optimization in the future.
In the meantime it means removing the variant.h include from tensor.h, since
variant_encode_decode.h now relies on tensor.h and variant.h now relies on that.
It also means we found a bunch of places where tensor.proto.h, variant.h, and
mutex.h were being imported through tensor.h (along with a bunch of other crap);
so now we directly import them in order to compile.
2. Move Variant registry to use TypeIndex instead of a TypeName string; this should
speed up registry lookups.
PiperOrigin-RevId: 212478896
|
|
|
|
| |
PiperOrigin-RevId: 206684358
|
|
|
|
| |
PiperOrigin-RevId: 185049319
|
|
|
|
| |
PiperOrigin-RevId: 182263576
|
|
|
|
|
|
|
|
|
|
|
|
| |
This reduces the typical amount of time spent converting an argument
name into a range of positional arguments from ~59.5ns to ~22.5ns. To
achieve this, the `NameRangeMap` is converted to borrow the argument
names (as `tensorflow::StringPiece` objects) from the appropriate
`OpDef`, instead of storing a string. This avoids allocating a string
for each lookup. The map data structure is also changed from a
`std::unordered_map` to a `gtl::FlatMap`.
PiperOrigin-RevId: 180588460
|
|
|
|
| |
PiperOrigin-RevId: 179263865
|
|
|
|
| |
PiperOrigin-RevId: 179260538
|
|
|
|
| |
PiperOrigin-RevId: 179258973
|
|
|
|
| |
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
|
|
|
|
|
|
|
| |
void* is more common (and more convenient) for passing in serialized
protobufs in c_api.h.
PiperOrigin-RevId: 170386128
|
|
|
|
| |
PiperOrigin-RevId: 170379490
|
|
|
|
| |
PiperOrigin-RevId: 169421145
|
|
|
|
| |
PiperOrigin-RevId: 169356209
|
|
|
|
| |
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
|