<?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>eIQ Machine Learning SoftwareのトピックRe: [Vx delegate]: interpreter.invoke() -&amp;gt; ERROR: Failed to verify graph</title>
    <link>https://community.nxp.com/t5/eIQ-Machine-Learning-Software/Vx-delegate-interpreter-invoke-gt-ERROR-Failed-to-verify-graph/m-p/1497146#M623</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I have the same issue with both Thunder and Lightning MoveNet models (&lt;A href="https://tfhub.dev/google/movenet/singlepose/thunder/4" target="_blank"&gt;https://tfhub.dev/google/movenet/singlepose/thunder/4&lt;/A&gt;) (&lt;A href="https://tfhub.dev/google/movenet/singlepose/lightning/4)" target="_blank"&gt;https://tfhub.dev/google/movenet/singlepose/lightning/4)&lt;/A&gt;. I attach a .txt file with logs.&lt;/P&gt;</description>
    <pubDate>Thu, 28 Jul 2022 08:30:51 GMT</pubDate>
    <dc:creator>Dellarox</dc:creator>
    <dc:date>2022-07-28T08:30:51Z</dc:date>
    <item>
      <title>[Vx delegate]: interpreter.invoke() -&gt; ERROR: Failed to verify graph</title>
      <link>https://community.nxp.com/t5/eIQ-Machine-Learning-Software/Vx-delegate-interpreter-invoke-gt-ERROR-Failed-to-verify-graph/m-p/1397576#M583</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm working with the i.MX 8M Plus EVK and VX delegate. I tried to run a full-int quantized tflite model using tflite_runtime version 2.6&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;delegate = [tflite.load_delegate('/usr/lib/libvx_delegate.so')]&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;interpreter = tflite.Interpreter(model_path=path, experimental_delegates=delegate)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;After allocating and setting input tensor, interpreter.invoke() generates following output:&lt;/P&gt;
&lt;DIV class="output_area"&gt;
&lt;DIV class="output_subarea output_text output_stream output_stdout" dir="auto"&gt;
&lt;PRE&gt;Vx delegate: allowed_builtin_code set to 0.
Vx delegate: error_during_init set to 0.
Vx delegate: error_during_prepare set to 0.
Vx delegate: error_during_invoke set to 0.
&lt;/PRE&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;DIV class="output_area"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV class="output_subarea output_text output_stream output_stderr" dir="auto"&gt;
&lt;PRE&gt;W [HandleLayoutInfer:257]Op 18: default layout inference pass.
W [HandleLayoutInfer:257]Op 18: default layout inference pass.
W [HandleLayoutInfer:257]Op 18: default layout inference pass.
W [HandleLayoutInfer:257]Op 18: default layout inference pass.
W [HandleLayoutInfer:257]Op 18: default layout inference pass.
W [HandleLayoutInfer:257]Op 18: default layout inference pass.
W [HandleLayoutInfer:257]Op 18: default layout inference pass.
W [HandleLayoutInfer:257]Op 18: default layout inference pass.
W [HandleLayoutInfer:257]Op 18: default layout inference pass.
W [HandleLayoutInfer:257]Op 18: default layout inference pass.
W [HandleLayoutInfer:257]Op 18: default layout inference pass.
W [HandleLayoutInfer:257]Op 18: default layout inference pass.
W [HandleLayoutInfer:257]Op 18: default layout inference pass.
W [HandleLayoutInfer:257]Op 18: default layout inference pass.
E [vsi_nn_OpOptimize:253]Optimize node RESHAPE fail
E [optimize_node_backward:260]Backward optimize node[63] RESHAPE fail
ERROR: Failed to verify graph
&lt;/PRE&gt;
&lt;/DIV&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Following OpCodes are used in the already converted tflite model:&lt;/P&gt;
&lt;P&gt;(Conversion is also done with tensorflow 2.6.0 lite converter)&lt;/P&gt;
&lt;TABLE&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TH&gt;index&lt;/TH&gt;
&lt;TH&gt;builtin_code&lt;/TH&gt;
&lt;TH&gt;custom_code&lt;/TH&gt;
&lt;TH&gt;version&lt;/TH&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;0&lt;/TD&gt;
&lt;TD&gt;PAD&lt;/TD&gt;
&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD&gt;2&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;1&lt;/TD&gt;
&lt;TD&gt;RESHAPE&lt;/TD&gt;
&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD&gt;1&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;2&lt;/TD&gt;
&lt;TD&gt;CONV_2D&lt;/TD&gt;
&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD&gt;3&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;3&lt;/TD&gt;
&lt;TD&gt;MAX_POOL_2D&lt;/TD&gt;
&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD&gt;2&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;4&lt;/TD&gt;
&lt;TD&gt;TRANSPOSE_CONV&lt;/TD&gt;
&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD&gt;3&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;5&lt;/TD&gt;
&lt;TD&gt;ADD&lt;/TD&gt;
&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD&gt;2&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;As attached in the i.mx machine learning user guide, the listed operations above are all supported by the ovxlib.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What could cause this error? Can someone help?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks and best regards&lt;/P&gt;</description>
      <pubDate>Tue, 11 Jan 2022 20:05:57 GMT</pubDate>
      <guid>https://community.nxp.com/t5/eIQ-Machine-Learning-Software/Vx-delegate-interpreter-invoke-gt-ERROR-Failed-to-verify-graph/m-p/1397576#M583</guid>
      <dc:creator>PRK56249</dc:creator>
      <dc:date>2022-01-11T20:05:57Z</dc:date>
    </item>
    <item>
      <title>Re: [Vx delegate]: interpreter.invoke() -&gt; ERROR: Failed to verify graph</title>
      <link>https://community.nxp.com/t5/eIQ-Machine-Learning-Software/Vx-delegate-interpreter-invoke-gt-ERROR-Failed-to-verify-graph/m-p/1497146#M623</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I have the same issue with both Thunder and Lightning MoveNet models (&lt;A href="https://tfhub.dev/google/movenet/singlepose/thunder/4" target="_blank"&gt;https://tfhub.dev/google/movenet/singlepose/thunder/4&lt;/A&gt;) (&lt;A href="https://tfhub.dev/google/movenet/singlepose/lightning/4)" target="_blank"&gt;https://tfhub.dev/google/movenet/singlepose/lightning/4)&lt;/A&gt;. I attach a .txt file with logs.&lt;/P&gt;</description>
      <pubDate>Thu, 28 Jul 2022 08:30:51 GMT</pubDate>
      <guid>https://community.nxp.com/t5/eIQ-Machine-Learning-Software/Vx-delegate-interpreter-invoke-gt-ERROR-Failed-to-verify-graph/m-p/1497146#M623</guid>
      <dc:creator>Dellarox</dc:creator>
      <dc:date>2022-07-28T08:30:51Z</dc:date>
    </item>
  </channel>
</rss>

