<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Dear Ant, Michael, in Intel® Distribution of OpenVINO™ Toolkit</title>
    <link>https://community.intel.com/t5/Intel-Distribution-of-OpenVINO/Problem-with-using-model-optimizer-to-convert-tensorflow-model/m-p/1145577#M11315</link>
    <description>&lt;P&gt;Dear&amp;nbsp;Ant, Michael,&lt;/P&gt;&lt;P&gt;First of all, thank you for installing OpenVino 2019R2 ! Can you kindly tell me more about your tensorflow model ? What kind is it ? Where did you get it ? Is it pre-trained or custom-trained ? Here is the&amp;nbsp;&lt;A href="http://docs.openvinotoolkit.org/latest/_docs_MO_DG_prepare_model_convert_model_Convert_Model_From_TensorFlow.html"&gt;Model Optimizer Supported and Validated Tensorflow List&lt;/A&gt;&amp;nbsp;. I hope you pulled your model from one of those.&lt;/P&gt;&lt;P&gt;Anyway. Let me know more. I am glad to help you !&lt;/P&gt;&lt;P&gt;Sincerely,&lt;/P&gt;&lt;P&gt;Shubha&lt;/P&gt;</description>
    <pubDate>Thu, 15 Aug 2019 20:52:18 GMT</pubDate>
    <dc:creator>Shubha_R_Intel</dc:creator>
    <dc:date>2019-08-15T20:52:18Z</dc:date>
    <item>
      <title>Problem with using model_optimizer to convert tensorflow model</title>
      <link>https://community.intel.com/t5/Intel-Distribution-of-OpenVINO/Problem-with-using-model-optimizer-to-convert-tensorflow-model/m-p/1145576#M11314</link>
      <description>&lt;P&gt;[ 2019-08-15 14:06:37,937 ] [ DEBUG ] [ class_registration:267 ] &amp;nbsp;Run replacer &amp;lt;class 'extensions.middle.EltwiseInputReshape.Eltwise1DInputReshape'&amp;gt;&lt;BR /&gt;[ 2019-08-15 14:06:37,951 ] [ DEBUG ] [ op:207 ] &amp;nbsp;Start running infer function for individual op node with attributes: {'precision': 'FP32', 'kind': 'op', 'type': 'Reshape', 'op': 'Reshape', 'reinterp_shape': True, 'in_ports_count': 2, 'out_ports_count': 1, 'infer': &amp;lt;function Reshape.infer at 0x7f1379559378&amp;gt;, 'dim': array([1, 1, 1, 1]), 'name': 'batch_normalization/batchnorm/mul/Output_0/Data_/Broadcast', 'dim_attrs': ['batch_dims', 'channel_dims', 'spatial_dims', 'axis'], 'shape_attrs': ['window', 'output_shape', 'stride', 'pad', 'shape'], 'IE': [('layer', [('id', &amp;lt;function Op.substitute_ie_attrs.&amp;lt;locals&amp;gt;.&amp;lt;lambda&amp;gt; at 0x7f1376330400&amp;gt;), 'name', 'precision', 'type'], [('data', [], []), '@ports', '@consts'])], '_in_ports': {0: {}, 1: {}}, '_out_ports': {0: {}}}&lt;BR /&gt;[ ERROR ] &amp;nbsp;-------------------------------------------------&lt;BR /&gt;[ ERROR ] &amp;nbsp;----------------- INTERNAL ERROR ----------------&lt;BR /&gt;[ ERROR ] &amp;nbsp;Unexpected exception happened.&lt;BR /&gt;[ ERROR ] &amp;nbsp;Please contact Model Optimizer developers and forward the following information:&lt;BR /&gt;[ ERROR ] &amp;nbsp;Exception occurred during running replacer "REPLACEMENT_ID (&amp;lt;class 'extensions.middle.EltwiseInputReshape.Eltwise1DInputReshape'&amp;gt;)": The Reshape operation batch_normalization/batchnorm/mul/Output_0/Data_/Broadcast must have 2 inputs&lt;BR /&gt;[ ERROR ] &amp;nbsp;Traceback (most recent call last):&lt;BR /&gt;&amp;nbsp; File "/opt/intel/openvino_2019.2.242/deployment_tools/model_optimizer/mo/utils/class_registration.py", line 273, in apply_replacements&lt;BR /&gt;&amp;nbsp; &amp;nbsp; for_graph_and_each_sub_graph_recursively(graph, replacer.find_and_replace_pattern)&lt;BR /&gt;&amp;nbsp; File "/opt/intel/openvino_2019.2.242/deployment_tools/model_optimizer/mo/middle/pattern_match.py", line 58, in for_graph_and_each_sub_graph_recursively&lt;BR /&gt;&amp;nbsp; &amp;nbsp; func(graph)&lt;BR /&gt;&amp;nbsp; File "/opt/intel/openvino_2019.2.242/deployment_tools/model_optimizer/extensions/middle/EltwiseInputReshape.py", line 67, in find_and_replace_pattern&lt;BR /&gt;&amp;nbsp; &amp;nbsp; reshape_data_node = reshape_data_op.create_node_with_data([node])&lt;BR /&gt;&amp;nbsp; File "/opt/intel/openvino_2019.2.242/deployment_tools/model_optimizer/mo/ops/op.py", line 208, in create_node_with_data&lt;BR /&gt;&amp;nbsp; &amp;nbsp; new_op_node.infer(new_op_node)&lt;BR /&gt;&amp;nbsp; File "/opt/intel/openvino_2019.2.242/deployment_tools/model_optimizer/mo/ops/reshape.py", line 47, in infer&lt;BR /&gt;&amp;nbsp; &amp;nbsp; lambda node: np.reshape(node.in_node(0).value, node.out_node().shape)&lt;BR /&gt;&amp;nbsp; File "/opt/intel/openvino_2019.2.242/deployment_tools/model_optimizer/mo/front/common/partial_infer/elemental.py", line 19, in single_output_infer&lt;BR /&gt;&amp;nbsp; &amp;nbsp; node.out_node(0).shape = shape_infer(node)&lt;BR /&gt;&amp;nbsp; File "/opt/intel/openvino_2019.2.242/deployment_tools/model_optimizer/mo/front/common/partial_infer/reshape.py", line 30, in tf_reshape_shape_infer&lt;BR /&gt;&amp;nbsp; &amp;nbsp; assert len(node.in_nodes()) == 2, 'The Reshape operation {} must have 2 inputs'.format(node.name)&lt;BR /&gt;AssertionError: The Reshape operation batch_normalization/batchnorm/mul/Output_0/Data_/Broadcast must have 2 inputs&lt;/P&gt;&lt;P&gt;The above exception was the direct cause of the following exception:&lt;/P&gt;&lt;P&gt;Traceback (most recent call last):&lt;BR /&gt;&amp;nbsp; File "/opt/intel/openvino_2019.2.242/deployment_tools/model_optimizer/mo/main.py", line 302, in main&lt;BR /&gt;&amp;nbsp; &amp;nbsp; return driver(argv)&lt;BR /&gt;&amp;nbsp; File "/opt/intel/openvino_2019.2.242/deployment_tools/model_optimizer/mo/main.py", line 251, in driver&lt;BR /&gt;&amp;nbsp; &amp;nbsp; is_binary=not argv.input_model_is_text)&lt;BR /&gt;&amp;nbsp; File "/opt/intel/openvino_2019.2.242/deployment_tools/model_optimizer/mo/pipeline/tf.py", line 134, in tf2nx&lt;BR /&gt;&amp;nbsp; &amp;nbsp; class_registration.apply_replacements(graph, class_registration.ClassType.MIDDLE_REPLACER)&lt;BR /&gt;&amp;nbsp; File "/opt/intel/openvino_2019.2.242/deployment_tools/model_optimizer/mo/utils/class_registration.py", line 299, in apply_replacements&lt;BR /&gt;&amp;nbsp; &amp;nbsp; )) from err&lt;BR /&gt;Exception: Exception occurred during running replacer "REPLACEMENT_ID (&amp;lt;class 'extensions.middle.EltwiseInputReshape.Eltwise1DInputReshape'&amp;gt;)": The Reshape operation batch_normalization/batchnorm/mul/Output_0/Data_/Broadcast must have 2 inputs&lt;/P&gt;&lt;P&gt;[ ERROR ] &amp;nbsp;---------------- END OF BUG REPORT --------------&lt;BR /&gt;[ ERROR ] &amp;nbsp;-------------------------------------------------&lt;BR /&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 15 Aug 2019 11:14:23 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Distribution-of-OpenVINO/Problem-with-using-model-optimizer-to-convert-tensorflow-model/m-p/1145576#M11314</guid>
      <dc:creator>Ant__Michael</dc:creator>
      <dc:date>2019-08-15T11:14:23Z</dc:date>
    </item>
    <item>
      <title>Dear Ant, Michael,</title>
      <link>https://community.intel.com/t5/Intel-Distribution-of-OpenVINO/Problem-with-using-model-optimizer-to-convert-tensorflow-model/m-p/1145577#M11315</link>
      <description>&lt;P&gt;Dear&amp;nbsp;Ant, Michael,&lt;/P&gt;&lt;P&gt;First of all, thank you for installing OpenVino 2019R2 ! Can you kindly tell me more about your tensorflow model ? What kind is it ? Where did you get it ? Is it pre-trained or custom-trained ? Here is the&amp;nbsp;&lt;A href="http://docs.openvinotoolkit.org/latest/_docs_MO_DG_prepare_model_convert_model_Convert_Model_From_TensorFlow.html"&gt;Model Optimizer Supported and Validated Tensorflow List&lt;/A&gt;&amp;nbsp;. I hope you pulled your model from one of those.&lt;/P&gt;&lt;P&gt;Anyway. Let me know more. I am glad to help you !&lt;/P&gt;&lt;P&gt;Sincerely,&lt;/P&gt;&lt;P&gt;Shubha&lt;/P&gt;</description>
      <pubDate>Thu, 15 Aug 2019 20:52:18 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Distribution-of-OpenVINO/Problem-with-using-model-optimizer-to-convert-tensorflow-model/m-p/1145577#M11315</guid>
      <dc:creator>Shubha_R_Intel</dc:creator>
      <dc:date>2019-08-15T20:52:18Z</dc:date>
    </item>
    <item>
      <title>Dear Shubha,</title>
      <link>https://community.intel.com/t5/Intel-Distribution-of-OpenVINO/Problem-with-using-model-optimizer-to-convert-tensorflow-model/m-p/1145578#M11316</link>
      <description>&lt;P&gt;Dear Shubha,&lt;BR /&gt;&lt;BR /&gt;The model I&amp;nbsp;use isn't a public model, it's&amp;nbsp;a custom-trained, but I can provide information about it by your request (the overall visualization of the graph you can find in graph.png: &lt;A href="https://drive.google.com/file/d/1ZOps6ilzabGiPzp3K4_O_OOjeyg0yjPY/view).&amp;nbsp;" target="_blank"&gt;https://drive.google.com/file/d/1ZOps6ilzabGiPzp3K4_O_OOjeyg0yjPY/view).&amp;nbsp;&lt;/A&gt;;&lt;BR /&gt;It seems that all layer types&amp;nbsp;are supported by model optimizer, so you can find more information about model layers types and model topology from the full model optimizer's debug log in attach. To simplify context, I set the output node during conversion not to the last one from the model. (you can find it&amp;nbsp;in&amp;nbsp;log.txt)&lt;BR /&gt;&lt;BR /&gt;Sincerely,&lt;BR /&gt;Michael.&lt;/P&gt;</description>
      <pubDate>Fri, 16 Aug 2019 09:29:36 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Distribution-of-OpenVINO/Problem-with-using-model-optimizer-to-convert-tensorflow-model/m-p/1145578#M11316</guid>
      <dc:creator>Ant__Michael</dc:creator>
      <dc:date>2019-08-16T09:29:36Z</dc:date>
    </item>
    <item>
      <title>Dear Ant, Michael,</title>
      <link>https://community.intel.com/t5/Intel-Distribution-of-OpenVINO/Problem-with-using-model-optimizer-to-convert-tensorflow-model/m-p/1145579#M11317</link>
      <description>&lt;P&gt;Dear&amp;nbsp;Ant, Michael,&lt;/P&gt;&lt;P&gt;I had a chance to look at your log. The Exception is this:&lt;/P&gt;&lt;P&gt;Exception: Exception occurred during running replacer "REPLACEMENT_ID (&amp;lt;class 'extensions.middle.EltwiseInputReshape.Eltwise1DInputReshape'&amp;gt;)": The Reshape operation batch_normalization/batchnorm/mul/Output_0/Data_/Broadcast must have 2 inputs&lt;/P&gt;&lt;P&gt;Please have a look at the&amp;nbsp;&lt;A href="http://docs.openvinotoolkit.org/latest/_docs_MO_DG_prepare_model_convert_model_IRLayersCatalogSpec.html#Reshape"&gt;IR Catalog for Reshape Operation&lt;/A&gt;&amp;nbsp;. As you can see, it expects "multi-dimensional input", so your&amp;nbsp;model must only have 1 or fewer inputs at this layer. Looking at your tensorboard image though I'm not seeing&amp;nbsp;batch_normalization/batchnorm/mul/Output_0/Data_/Broadcast .&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you are sure this model works and does inference in Tensorflow, then it could be a Model Optimizer bug (I see that you are using GRU in this model, and GRU is definitely supported in OpenVino).&amp;nbsp; If you feel uncomfortable with providing your model publicly let me know and I can PM you so that you can send it as a *.zip file privately.&lt;/P&gt;&lt;P&gt;I hope it's clear. Let me know if not,&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Shubha&lt;/P&gt;</description>
      <pubDate>Wed, 21 Aug 2019 19:23:00 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Distribution-of-OpenVINO/Problem-with-using-model-optimizer-to-convert-tensorflow-model/m-p/1145579#M11317</guid>
      <dc:creator>Shubha_R_Intel</dc:creator>
      <dc:date>2019-08-21T19:23:00Z</dc:date>
    </item>
    <item>
      <title>Dear Shubha,</title>
      <link>https://community.intel.com/t5/Intel-Distribution-of-OpenVINO/Problem-with-using-model-optimizer-to-convert-tensorflow-model/m-p/1145580#M11318</link>
      <description>&lt;P&gt;Dear Shubha,&lt;BR /&gt;&lt;BR /&gt;Thanks for your attention to the problem.&amp;nbsp;Inference in tensorflow works good for the model, so I suppose it would good approach&amp;nbsp;to send you this model in PM. Could you describe please, how can I contact with you in PM?&lt;BR /&gt;&lt;BR /&gt;Sincerely,&lt;BR /&gt;Michael&lt;/P&gt;</description>
      <pubDate>Thu, 22 Aug 2019 08:26:32 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Distribution-of-OpenVINO/Problem-with-using-model-optimizer-to-convert-tensorflow-model/m-p/1145580#M11318</guid>
      <dc:creator>Ant__Michael</dc:creator>
      <dc:date>2019-08-22T08:26:32Z</dc:date>
    </item>
    <item>
      <title>Dear Ant, Michael,</title>
      <link>https://community.intel.com/t5/Intel-Distribution-of-OpenVINO/Problem-with-using-model-optimizer-to-convert-tensorflow-model/m-p/1145581#M11319</link>
      <description>&lt;P&gt;Dear&amp;nbsp;Ant, Michael,&lt;/P&gt;&lt;P&gt;I have sent you a PM which will enable you to directly PM me your *.zip file.&lt;/P&gt;&lt;P&gt;Thanks !&lt;/P&gt;&lt;P&gt;Shubha&lt;/P&gt;</description>
      <pubDate>Thu, 22 Aug 2019 20:18:15 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Distribution-of-OpenVINO/Problem-with-using-model-optimizer-to-convert-tensorflow-model/m-p/1145581#M11319</guid>
      <dc:creator>Shubha_R_Intel</dc:creator>
      <dc:date>2019-08-22T20:18:15Z</dc:date>
    </item>
  </channel>
</rss>

