<?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 Re: Custom stateful model in Intel® Distribution of OpenVINO™ Toolkit</title>
    <link>https://community.intel.com/t5/Intel-Distribution-of-OpenVINO/Custom-stateful-model/m-p/1243470#M22236</link>
    <description>&lt;P&gt;No, not yet, but it sounds like a lot of work. Is this the only work-around as of today?&lt;/P&gt;
&lt;P&gt;Regards&lt;/P&gt;</description>
    <pubDate>Tue, 05 Jan 2021 15:28:03 GMT</pubDate>
    <dc:creator>rawsock</dc:creator>
    <dc:date>2021-01-05T15:28:03Z</dc:date>
    <item>
      <title>Custom stateful model</title>
      <link>https://community.intel.com/t5/Intel-Distribution-of-OpenVINO/Custom-stateful-model/m-p/1242036#M22168</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I have a pytorch CNN model which needs to store and retrieve last conv states between low-latency inferences for custom padding. Onnx does not support Assign/ReadValue ops and&amp;nbsp;InferenceEngine::LowLatency() works only with LSTMs. What would be the recommended way to add Assign/ReadValue ops at arbitrary places so that the states I need are stored between inferences?&lt;/P&gt;</description>
      <pubDate>Wed, 30 Dec 2020 15:01:00 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Distribution-of-OpenVINO/Custom-stateful-model/m-p/1242036#M22168</guid>
      <dc:creator>rawsock</dc:creator>
      <dc:date>2020-12-30T15:01:00Z</dc:date>
    </item>
    <item>
      <title>Re:Custom stateful model</title>
      <link>https://community.intel.com/t5/Intel-Distribution-of-OpenVINO/Custom-stateful-model/m-p/1242573#M22198</link>
      <description>&lt;P&gt;Hi rawsock,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for reaching out to us. We are investigating this issue and will get back to you soon.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Adli&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 01 Jan 2021 13:06:21 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Distribution-of-OpenVINO/Custom-stateful-model/m-p/1242573#M22198</guid>
      <dc:creator>Adli</dc:creator>
      <dc:date>2021-01-01T13:06:21Z</dc:date>
    </item>
    <item>
      <title>Re: Custom stateful model</title>
      <link>https://community.intel.com/t5/Intel-Distribution-of-OpenVINO/Custom-stateful-model/m-p/1243330#M22229</link>
      <description>&lt;P&gt;Hi rawsock,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you for waiting. Just a quick check, have you tried exporting the Pytorch model with custom op to ONNX? Please refer to the following &lt;A href="https://github.com/onnx/tutorials/blob/master/PyTorchCustomOperator/README.md" target="_self"&gt;page&lt;/A&gt;. Then, please refer to the following &lt;A href="https://www.intel.com/content/www/us/en/support/articles/000057982/boards-and-kits.html" target="_self"&gt;article&lt;/A&gt;. The article is on how to add support for an unsupported layer in the OpenVINO toolkit.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Adli&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 05 Jan 2021 07:35:39 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Distribution-of-OpenVINO/Custom-stateful-model/m-p/1243330#M22229</guid>
      <dc:creator>Adli</dc:creator>
      <dc:date>2021-01-05T07:35:39Z</dc:date>
    </item>
    <item>
      <title>Re: Custom stateful model</title>
      <link>https://community.intel.com/t5/Intel-Distribution-of-OpenVINO/Custom-stateful-model/m-p/1243470#M22236</link>
      <description>&lt;P&gt;No, not yet, but it sounds like a lot of work. Is this the only work-around as of today?&lt;/P&gt;
&lt;P&gt;Regards&lt;/P&gt;</description>
      <pubDate>Tue, 05 Jan 2021 15:28:03 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Distribution-of-OpenVINO/Custom-stateful-model/m-p/1243470#M22236</guid>
      <dc:creator>rawsock</dc:creator>
      <dc:date>2021-01-05T15:28:03Z</dc:date>
    </item>
    <item>
      <title>Re: Custom stateful model</title>
      <link>https://community.intel.com/t5/Intel-Distribution-of-OpenVINO/Custom-stateful-model/m-p/1243800#M22248</link>
      <description>&lt;P&gt;Hi rawsock,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you for your prompt response. It is just a quick check. Feel free to try it. I will update any info regarding this issue as soon as possible.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Adli&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 06 Jan 2021 10:29:50 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Distribution-of-OpenVINO/Custom-stateful-model/m-p/1243800#M22248</guid>
      <dc:creator>Adli</dc:creator>
      <dc:date>2021-01-06T10:29:50Z</dc:date>
    </item>
    <item>
      <title>Re: Custom stateful model</title>
      <link>https://community.intel.com/t5/Intel-Distribution-of-OpenVINO/Custom-stateful-model/m-p/1244103#M22268</link>
      <description>&lt;P&gt;Hi rawsock,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;OpenVINO contains a special API to simplify work with networks with states. The state is automatically saved between inferences, and there is a way to reset the state when needed. You can also read the state or set it to some new value between inferences.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Inference Engine has the InferRequest::QueryState method to get the list of states from a network and IVariableState interface to operate with states. Please refer to the following link:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://docs.openvinotoolkit.org/latest/openvino_docs_IE_DG_network_state_intro.html#openvino_state_api" target="_blank" rel="noopener noreferrer"&gt;https://docs.openvinotoolkit.org/latest/openvino_docs_IE_DG_network_state_intro.html#openvino_state_api&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Using several threads is possible if you have several independent sequences. Then each sequence can be processed in its own infer request. Please note that inference of one sequence in several infer requests is not recommended. You can refer to the following link for an example of stateful network inference:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://docs.openvinotoolkit.org/latest/openvino_docs_IE_DG_network_state_intro.html#example_of_stateful_network_inference" target="_blank" rel="noopener noreferrer"&gt;https://docs.openvinotoolkit.org/latest/openvino_docs_IE_DG_network_state_intro.html#example_of_stateful_network_inference&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Member Function of GetState(), Reset() and SetState() usage might be helpful for your situation:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://docs.openvinotoolkit.org/2021.2/classInferenceEngine_1_1IVariableState.html" target="_blank" rel="noopener noreferrer"&gt;https://docs.openvinotoolkit.org/2021.2/classInferenceEngine_1_1IVariableState.html&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Adli&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 07 Jan 2021 07:28:12 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Distribution-of-OpenVINO/Custom-stateful-model/m-p/1244103#M22268</guid>
      <dc:creator>Adli</dc:creator>
      <dc:date>2021-01-07T07:28:12Z</dc:date>
    </item>
    <item>
      <title>Re: Custom stateful model</title>
      <link>https://community.intel.com/t5/Intel-Distribution-of-OpenVINO/Custom-stateful-model/m-p/1244170#M22274</link>
      <description>&lt;P&gt;My understanding was that GetState/SetState work as long as there are ReadValue/Assign ops in proper places. And if that's the case, I do not need GetState/SetState anyway, since state will be saved automatically.&lt;/P&gt;
&lt;P&gt;Are you saying that GetState/SetState work on any node, without ReadValue/Assign ops present in IR?&lt;/P&gt;</description>
      <pubDate>Thu, 07 Jan 2021 10:23:22 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Distribution-of-OpenVINO/Custom-stateful-model/m-p/1244170#M22274</guid>
      <dc:creator>rawsock</dc:creator>
      <dc:date>2021-01-07T10:23:22Z</dc:date>
    </item>
    <item>
      <title>Re:Custom stateful model</title>
      <link>https://community.intel.com/t5/Intel-Distribution-of-OpenVINO/Custom-stateful-model/m-p/1245835#M22354</link>
      <description>&lt;P&gt;Hi rawsock,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My sincere apologies for the delayed response.&amp;nbsp;We will verify this and get back to you as soon as possible.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Adli&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 13 Jan 2021 10:46:42 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Distribution-of-OpenVINO/Custom-stateful-model/m-p/1245835#M22354</guid>
      <dc:creator>Adli</dc:creator>
      <dc:date>2021-01-13T10:46:42Z</dc:date>
    </item>
    <item>
      <title>Re: Re:Custom stateful model</title>
      <link>https://community.intel.com/t5/Intel-Distribution-of-OpenVINO/Custom-stateful-model/m-p/1248070#M22437</link>
      <description>&lt;P&gt;Hi, any update?&lt;/P&gt;</description>
      <pubDate>Wed, 20 Jan 2021 09:18:06 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Distribution-of-OpenVINO/Custom-stateful-model/m-p/1248070#M22437</guid>
      <dc:creator>rawsock</dc:creator>
      <dc:date>2021-01-20T09:18:06Z</dc:date>
    </item>
    <item>
      <title>Re: Custom stateful model</title>
      <link>https://community.intel.com/t5/Intel-Distribution-of-OpenVINO/Custom-stateful-model/m-p/1248479#M22466</link>
      <description>&lt;P&gt;Hi rawsock,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you for your patience. Based on the &lt;A href="https://docs.openvinotoolkit.org/latest/openvino_docs_IE_DG_network_state_intro.html" target="_self"&gt;documentation&lt;/A&gt;:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;GetState/SetState -&amp;gt; returns&amp;nbsp;current value&amp;nbsp;of state/set new value&amp;nbsp;for state&lt;/LI&gt;
&lt;LI&gt;ReadValue/Assign -&amp;gt; return/assign value&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It is possible for the GetState/SetState to work on any node without ReadValue/Assign operation present in IR. In the case of low-latency transformation, the transformation will not involve the state. Rather use ReadValue/Assign to interact with the value.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Adli&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 21 Jan 2021 08:27:34 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Distribution-of-OpenVINO/Custom-stateful-model/m-p/1248479#M22466</guid>
      <dc:creator>Adli</dc:creator>
      <dc:date>2021-01-21T08:27:34Z</dc:date>
    </item>
    <item>
      <title>Re:Custom stateful model</title>
      <link>https://community.intel.com/t5/Intel-Distribution-of-OpenVINO/Custom-stateful-model/m-p/1251133#M22596</link>
      <description>&lt;P&gt;Hi Rawsock,&lt;/P&gt;&lt;P&gt;This thread will no longer be monitored since we have provided references and recommendations.&amp;nbsp;If you need any additional information from Intel, please submit a new question.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Munesh&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 29 Jan 2021 03:48:17 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Distribution-of-OpenVINO/Custom-stateful-model/m-p/1251133#M22596</guid>
      <dc:creator>Munesh_Intel</dc:creator>
      <dc:date>2021-01-29T03:48:17Z</dc:date>
    </item>
  </channel>
</rss>

