- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I tried to run model optimizer on a tensorflow seq2seq frozen graph and got a graph cycle. Does it work with seq2seq?
from ._conv import register_converters as _register_converters
[ ERROR ] -------------------------------------------------
[ ERROR ] ----------------- INTERNAL ERROR ----------------
[ ERROR ] Unexpected exception happened.
[ ERROR ] Please contact Model Optimizer developers and forward the following information:
[ ERROR ] Graph contains a cycle.
[ ERROR ] Traceback (most recent call last):
File "c:\Intel\computer_vision_sdk_2018.1.249\deployment_tools\model_optimizer\mo\main.py", line 221, in main
return driver(argv)
File "c:\Intel\computer_vision_sdk_2018.1.249\deployment_tools\model_optimizer\mo\main.py", line 189, in driver
mean_scale_values=mean_scale)
File "c:\Intel\computer_vision_sdk_2018.1.249\deployment_tools\model_optimizer\mo\pipeline\tf.py", line 141, in tf2nx
partial_infer(graph)
File "c:\Intel\computer_vision_sdk_2018.1.249\deployment_tools\model_optimizer\mo\middle\passes\infer.py", line 55, in partial_infer
nodes = nx.topological_sort(graph)
File "C:\Users\dmohan\AppData\Roaming\Python\Python36\site-packages\networkx\algorithms\dag.py", line 157, in topological_sort
raise nx.NetworkXUnfeasible("Graph contains a cycle.")
networkx.exception.NetworkXUnfeasible: Graph contains a cycle.
Link Copied
3 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Mohan deepa,
Please check this thread.
https://software.intel.com/en-us/forums/computer-vision/topic/777945
It has similar topic.
Regards,
Peter.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi
I cannot figure what the fix is for this? Does model optimizer not support seq2seq model?
Deepa
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Deepa,
as the other thread answer indicates, In the general case, cycles are not supported by MO with seq2seq falling into that category. I invite you to read the recipe provided in the other thread on how to deal with this type of graph.
Best,
Severine
Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page