aboutsummaryrefslogtreecommitdiffhomepage
path: root/tensorflow/c/c_api_function.cc
Commit message (Collapse)AuthorAge
* [TF] Variant improvements.Gravatar Eugene Brevdo2018-09-11
| | | | | | | | | | | | | | | | | | 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
* Added a C API to get a TF function name.Gravatar Mingsheng Hong2018-07-30
| | | | PiperOrigin-RevId: 206684358
* Don't fail if control dependency is on an input of the function.Gravatar Akshay Modi2018-02-08
| | | | PiperOrigin-RevId: 185049319
* Add TF_GraphNumFunctions and TF_GraphGetFunctionsGravatar Igor Ganichev2018-01-17
| | | | PiperOrigin-RevId: 182263576
* Speed up `OpKernel::InputRange()` by ~2.6x.Gravatar Derek Murray2018-01-02
| | | | | | | | | | | | 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
* Automated g4 rollback of changelist 179260538Gravatar Dandelion Man?2017-12-15
| | | | PiperOrigin-RevId: 179263865
* Automated g4 rollback of changelist 179258973Gravatar A. Unique TensorFlower2017-12-15
| | | | PiperOrigin-RevId: 179260538
* Merge changes from github.Gravatar Dandelion Man?2017-12-15
| | | | PiperOrigin-RevId: 179258973
* Automated g4 rollback of changelist 178759398Gravatar Derek Murray2017-12-13
| | | | PiperOrigin-RevId: 178909147
* Automated g4 rollback of changelist 178675527Gravatar Derek Murray2017-12-12
| | | | PiperOrigin-RevId: 178759398
* Mark a FunctionDef's signature as stateful when it contains a stateful node.Gravatar Derek Murray2017-12-11
| | | | | | 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
* Use void* intead of TF_Buffer in TF_FunctionImportFunctionDefGravatar Igor Ganichev2017-09-28
| | | | | | | void* is more common (and more convenient) for passing in serialized protobufs in c_api.h. PiperOrigin-RevId: 170386128
* Add append_hash_to_fn_name arg to TF_GraphToFunctionGravatar Igor Ganichev2017-09-28
| | | | PiperOrigin-RevId: 170379490
* Add function description parameter to TF_GraphToFunctionGravatar Igor Ganichev2017-09-20
| | | | PiperOrigin-RevId: 169421145
* Relax restriction on ref types in bodyGravatar Igor Ganichev2017-09-19
| | | | PiperOrigin-RevId: 169356209
* Add attribute setting and getting support to TF_FunctionGravatar Igor Ganichev2017-09-19
| | | | PiperOrigin-RevId: 169337159
* Implement TF_FunctionImportFunctionDefGravatar Igor Ganichev2017-09-19
| | | | PiperOrigin-RevId: 169304057
* Support specifying output names during TF_Function creationGravatar Igor Ganichev2017-09-19
| | | | PiperOrigin-RevId: 169245946
* Add function gradient support to C APIGravatar Igor Ganichev2017-09-18
| | | | | | | | | | 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
* Add function support to Tensorflow C APIGravatar Igor Ganichev2017-08-30
This change adds minimal functionality. Support for FunctionOptions, attributes, output name rewriting, function name generation, etc is comming next. PiperOrigin-RevId: 167091238