You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Traceback (most recent call last):
File "", line 1, in
File "/usr/local/lib/python2.7/dist-packages/tensorflow/python/training/saver.py", line 1458, in import_meta_graph
return _import_meta_graph_def(read_meta_graph_file(meta_graph_or_file))
File "/usr/local/lib/python2.7/dist-packages/tensorflow/python/training/saver.py", line 1386, in _import_meta_graph_def
return Saver()
File "/usr/local/lib/python2.7/dist-packages/tensorflow/python/training/saver.py", line 861, in init
restore_sequentially=restore_sequentially)
File "/usr/local/lib/python2.7/dist-packages/tensorflow/python/training/saver.py", line 502, in build
vars_to_save = self._ValidateAndSliceInputs(names_to_variables)
File "/usr/local/lib/python2.7/dist-packages/tensorflow/python/training/saver.py", line 399, in _ValidateAndSliceInputs
names_to_variables = self._VarListToDict(names_to_variables)
File "/usr/local/lib/python2.7/dist-packages/tensorflow/python/training/saver.py", line 377, in _VarListToDict
name)
ValueError: At least two variables have the same name: Variable_1
What I actually want to use is this, which also does not work (same error):
You should call tf.train.import_meta_graph() with a cleared Graph. Example:
# Create a clean graph and import the MetaGraphDef nodes.new_graph=tf.Graph()
withtf.Session(graph=new_graph) assess:
# Import the previously export meta graph.saver=tf.train.import_meta_graph(meta_graph_def)
Please feel free to reopen if this doesn't solve the issue.
Imported from GitHub PR openxla/xla#4603
there are few build errors in ROCm side
1. tsl//tsl/platform:random duplicate in bazel build
2. we haven't fully enable triton_softmax_fusion (ROCm triton backend is WIP)
3. some include errors between hipblas-lt and gpu.graph PR
This PR has fixed all the above on ROCm side.
Thanks in advance @akuegel@ddunl
Copybara import of the project:
--
4693e3db33ea8c87c17d4f9de7f7a1fea53013b0 by Chao Chen <cchen104@amd.com>:
fixed rocm build error
Merging this change closes#4603
PiperOrigin-RevId: 552428986
What related GitHub issues or StackOverflow threads have you found by searching the web for your problem?
None
Environment info
Operating System: Ubuntu 16.04.1 LTS
Installed version of CUDA and cuDNN: none
pip package: https://storage.googleapis.com/tensorflow/linux/cpu/tensorflow-0.10.0-cp27-none-linux_x86_64.whl
$ python -c "import tensorflow; print(tensorflow.version)"
0.10.0
If possible, provide a minimal reproducible example (We usually don't have time to read hundreds of lines of your code)
Using commands from https://www.tensorflow.org/versions/r0.9/get_started/index.html to create a model:
Then this works:
But this doesn't:
Traceback (most recent call last):
File "", line 1, in
File "/usr/local/lib/python2.7/dist-packages/tensorflow/python/training/saver.py", line 1458, in import_meta_graph
return _import_meta_graph_def(read_meta_graph_file(meta_graph_or_file))
File "/usr/local/lib/python2.7/dist-packages/tensorflow/python/training/saver.py", line 1386, in _import_meta_graph_def
return Saver()
File "/usr/local/lib/python2.7/dist-packages/tensorflow/python/training/saver.py", line 861, in init
restore_sequentially=restore_sequentially)
File "/usr/local/lib/python2.7/dist-packages/tensorflow/python/training/saver.py", line 502, in build
vars_to_save = self._ValidateAndSliceInputs(names_to_variables)
File "/usr/local/lib/python2.7/dist-packages/tensorflow/python/training/saver.py", line 399, in _ValidateAndSliceInputs
names_to_variables = self._VarListToDict(names_to_variables)
File "/usr/local/lib/python2.7/dist-packages/tensorflow/python/training/saver.py", line 377, in _VarListToDict
name)
ValueError: At least two variables have the same name: Variable_1
What I actually want to use is this, which also does not work (same error):
I need a solution that does not rely on the file system.
Am I doing something wrong?
What other attempted solutions have you tried?
I tried to look at the files to see where these duplicated names occur but did not find any.
The text was updated successfully, but these errors were encountered: