Skip to content

Instantly share code, notes, and snippets.

@kepricon
Created February 8, 2021 19:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kepricon/d0204fcd3b497d2aed2ac4d11eb47f5b to your computer and use it in GitHub Desktop.
Save kepricon/d0204fcd3b497d2aed2ac4d11eb47f5b to your computer and use it in GitHub Desktop.
Traceback (most recent call last):
File "load_test.py", line 10, in <module>
tf.saved_model.load('model_1_0_1_post1')
File "/home/kepricon/rescale/conda10/lib/python3.7/site-packages/tensorflow/python/saved_model/load.py", line 859, in load
return load_internal(export_dir, tags, options)["root"]
File "/home/kepricon/rescale/conda10/lib/python3.7/site-packages/tensorflow/python/saved_model/load.py", line 909, in load_internal
root = load_v1_in_v2.load(export_dir, tags)
File "/home/kepricon/rescale/conda10/lib/python3.7/site-packages/tensorflow/python/saved_model/load_v1_in_v2.py", line 279, in load
return loader.load(tags=tags)
File "/home/kepricon/rescale/conda10/lib/python3.7/site-packages/tensorflow/python/saved_model/load_v1_in_v2.py", line 262, in load
signature_functions = self._extract_signatures(wrapped, meta_graph_def)
File "/home/kepricon/rescale/conda10/lib/python3.7/site-packages/tensorflow/python/saved_model/load_v1_in_v2.py", line 169, in _extract_signatures
signature_fn = wrapped.prune(feeds=feeds, fetches=fetches)
File "/home/kepricon/rescale/conda10/lib/python3.7/site-packages/tensorflow/python/eager/wrap_function.py", line 338, in prune
base_graph=self._func_graph)
File "/home/kepricon/rescale/conda10/lib/python3.7/site-packages/tensorflow/python/eager/lift_to_graph.py", line 260, in lift_to_graph
add_sources=add_sources))
File "/home/kepricon/rescale/conda10/lib/python3.7/site-packages/tensorflow/python/ops/op_selector.py", line 413, in map_subgraph
% (repr(init_tensor), repr(op), _path_from(op, init_tensor, sources)))
tensorflow.python.ops.op_selector.UnliftableError: A SavedModel signature needs an input for each placeholder the signature's outputs use. An output for signature 'serving_default' depends on a placeholder which is not an input (i.e. the placeholder is not fed a value).
Unable to lift tensor <tf.Tensor 'default_policy/cond_2/Merge:0' shape=(?,) dtype=float32> because it depends transitively on placeholder <tf.Operation 'default_policy/timestep' type=Placeholder> via at least one path, e.g.: default_policy/cond_2/Merge (Merge) <- default_policy/cond_2/Switch_1 (Switch) <- default_policy/cond_2/pred_id (Identity) <- default_policy/LogicalAnd (LogicalAnd) <- default_policy/GreaterEqual (GreaterEqual) <- default_policy/timestep (Placeholder)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment