Commit 0ba21c68 authored by Derek Murray's avatar Derek Murray Committed by TensorFlower Gardener
Browse files

Make the test for "unused inputs" more precise in `tf.import_graph_def()`.

Before, `tf.import_graph_def()` would raise a `ValueError` if any of
the tensors named in the `input_map` was not used as an input to
another node. However, the contract for this function states that a
`ValueError` will be raised "if `input_map`... contains names that do
not appear in `graph_def`," so this change expands the valid domain of
`input_map` to include tensors that only appear as unconsumed
operation outputs in the imported graph.

PiperOrigin-RevId: 161826633
parent 4ab3342e
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment