aboutsummaryrefslogtreecommitdiffhomepage
path: root/tensorflow/tools/graph_transforms/fold_constants_test.cc
Commit message (Collapse)AuthorAge
* Fix RemoveUnusedNodes generating invalid graphs for PlaceholderWithDefault ↵Gravatar A. Unique TensorFlower2018-06-08
| | | | | | inputs PiperOrigin-RevId: 199776409
* Replaced calls to deprecated tensorflow::StringPiece methods with theirGravatar A. Unique TensorFlower2018-04-04
| | | | | | | | tensorflow::str_util equivalents. This will allow the deprecated methods to be removed. PiperOrigin-RevId: 191627087
* Add max_constant_size_in_bytes parameter for ConstantFolding transform that ↵Gravatar A. Unique TensorFlower2018-04-03
| | | | | | sets the maximum size of each created constant. PiperOrigin-RevId: 191523208
* Bug fixes for fold_constants_lib.Gravatar A. Unique TensorFlower2017-10-18
| | | | | | | | | | | | | | | | | | | | | | | | 1. Tensor names in TF may be in the form of "a:0", "a:1", or "a" as a shorthand notation of "a:0". FoldConstant library always expected the shorthand notation, and did not handle the cases where explicit notation was passed to input or output list. This means that this library could not handle the case when input or output were not the first output of a node. 2. To match the input nodes in the original graph and the added Recv nodes in rewritten graph, FoldConstant library used prefix matching. Unfortunately, this means that when a input name is a prefix of another input name, there is possibility that wrong Recv node gets matched. For example, if input names were "placeholder" and "placeholder_1", then it did not handle the case very well. 3. RemoveUnusedNodes() in FoldConstants lib could remove nodes which output depended on. This happened when an input name points to a node with multiple outputs and not all outputs of that node were included in the input names. 4. ReplaceSendRecvs() in FoldConstants lib assumed that all input nodes are removed during rewriting the graph. This assumption is not necessarily true, and it could add a duplicate node in the graph. PiperOrigin-RevId: 172641947
* Add "clear_output_shapes" option to FoldConstants transformer inGravatar A. Unique TensorFlower2017-10-12
| | | | | | | | | tools/graph_transforms. By setting this option to false, the transformer will not strip off the shape information stored as attributes. PiperOrigin-RevId: 172057283
* Use shape information in constant propagation.Gravatar A. Unique TensorFlower2017-10-03
| | | | PiperOrigin-RevId: 170818644
* Add option to fold_constants to exclude specified ops.Gravatar A. Unique TensorFlower2017-07-18
| | | | PiperOrigin-RevId: 162328390
* Remove unnecessary copies of value parameters.Gravatar Peter Hawkins2017-05-10
| | | | PiperOrigin-RevId: 155511618
* Create Graph Transform Tool for rewriting model files.Gravatar Pete Warden2016-12-21
| | | | Change: 142729497
* Tool to fold constants in saved graphs.Gravatar Pete Warden2016-10-06
It's often useful to preprocess graphs to fold constant expression subgraphs into single constant nodes, especially as preparation for further processing for purposes like batch normalization folding. This change uses the built-in constant folding in the runtime to rewrite frozen models on disk. Change: 135440279