error when "python tofreezelite.py"
bigcash opened this issue · 1 comments
WARNING:tensorflow:From tofreezelite.py:6: load (from tensorflow.python.saved_model.loader_impl) is deprecated and will be removed in a future version.
Instructions for updating:
This function will only be available through the v1 compatibility library as tf.compat.v1.saved_model.loader.load or tf.compat.v1.saved_model.load. There will be a new function for importing SavedModels in Tensorflow 2.0.
Traceback (most recent call last):
File "tofreezelite.py", line 6, in
model = tf.compat.v1.saved_model.load(savedModelDir)
File "/home/lingbao/soft/anaconda3/lib/python3.7/site-packages/tensorflow_core/python/util/deprecation.py", line 324, in new_func
return func(*args, **kwargs)
TypeError: load() missing 2 required positional arguments: 'tags' and 'export_dir'
miss two params: session and tags
how to fix it?
thanks!