<?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 oneAPI DNNL: How to get stat memory descriptor in C API from layer normalization primitive in AI Tools from Intel</title>
    <link>https://community.intel.com/t5/AI-Tools-from-Intel/oneAPI-DNNL-How-to-get-stat-memory-descriptor-in-C-API-from/m-p/1699721#M984</link>
    <description>&lt;P&gt;Hello Community,&lt;/P&gt;&lt;P&gt;I have question related to oneDNN (&lt;A href="https://www.intel.com/content/www/us/en/developer/tools/oneapi/onednn.html" target="_blank" rel="noopener"&gt;https://www.intel.com/content/www/us/en/developer/tools/oneapi/onednn.html&lt;/A&gt;), but I am not sure where is the right place to ask.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In oneDNN there is C API function dnnl_layer_normalization_forward_primitive_desc_create(), where for "stat" parameter (mean and variance) can be passed null.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there way how to query memory descriptor from primitive descriptor to create required memory?&lt;/P&gt;&lt;P&gt;In C++ code example there is :&lt;/P&gt;&lt;PRE&gt;    // Use the memory descriptors from the primitive to create memory objects
    // required for the primitive: mean, variance, scale/shift.
    auto mean_mem = memory(lnorm_pd.mean_desc(), engine);
    auto variance_mem = memory(lnorm_pd.variance_desc(), engine);&lt;/PRE&gt;&lt;P&gt;but I am looking for C example?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can be used for this: &lt;STRONG&gt;dnnl_primitive_desc_query_md&lt;/STRONG&gt;(..., &lt;STRONG&gt;dnnl_query_workspace_md&lt;/STRONG&gt;, 0) or something like this?&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;-Laco.&lt;/P&gt;</description>
    <pubDate>Wed, 25 Jun 2025 07:31:42 GMT</pubDate>
    <dc:creator>Ladislav_K</dc:creator>
    <dc:date>2025-06-25T07:31:42Z</dc:date>
    <item>
      <title>oneAPI DNNL: How to get stat memory descriptor in C API from layer normalization primitive</title>
      <link>https://community.intel.com/t5/AI-Tools-from-Intel/oneAPI-DNNL-How-to-get-stat-memory-descriptor-in-C-API-from/m-p/1699721#M984</link>
      <description>&lt;P&gt;Hello Community,&lt;/P&gt;&lt;P&gt;I have question related to oneDNN (&lt;A href="https://www.intel.com/content/www/us/en/developer/tools/oneapi/onednn.html" target="_blank" rel="noopener"&gt;https://www.intel.com/content/www/us/en/developer/tools/oneapi/onednn.html&lt;/A&gt;), but I am not sure where is the right place to ask.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In oneDNN there is C API function dnnl_layer_normalization_forward_primitive_desc_create(), where for "stat" parameter (mean and variance) can be passed null.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there way how to query memory descriptor from primitive descriptor to create required memory?&lt;/P&gt;&lt;P&gt;In C++ code example there is :&lt;/P&gt;&lt;PRE&gt;    // Use the memory descriptors from the primitive to create memory objects
    // required for the primitive: mean, variance, scale/shift.
    auto mean_mem = memory(lnorm_pd.mean_desc(), engine);
    auto variance_mem = memory(lnorm_pd.variance_desc(), engine);&lt;/PRE&gt;&lt;P&gt;but I am looking for C example?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can be used for this: &lt;STRONG&gt;dnnl_primitive_desc_query_md&lt;/STRONG&gt;(..., &lt;STRONG&gt;dnnl_query_workspace_md&lt;/STRONG&gt;, 0) or something like this?&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;-Laco.&lt;/P&gt;</description>
      <pubDate>Wed, 25 Jun 2025 07:31:42 GMT</pubDate>
      <guid>https://community.intel.com/t5/AI-Tools-from-Intel/oneAPI-DNNL-How-to-get-stat-memory-descriptor-in-C-API-from/m-p/1699721#M984</guid>
      <dc:creator>Ladislav_K</dc:creator>
      <dc:date>2025-06-25T07:31:42Z</dc:date>
    </item>
    <item>
      <title>Re: oneAPI DNNL: How to get stat memory descriptor in C API from layer normalization primitive</title>
      <link>https://community.intel.com/t5/AI-Tools-from-Intel/oneAPI-DNNL-How-to-get-stat-memory-descriptor-in-C-API-from/m-p/1700754#M994</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hi Ladislav_K,&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Sorry for late response,&amp;nbsp; if convinent for you, please submit the issue to oneDNN github&amp;nbsp;&lt;A href="https://github.com/uxlfoundation/oneDNN/issues" target="_blank"&gt;Issues · uxlfoundation/oneDNN&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;where oneDNN dev team will help you directly.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;thanks&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 01 Jul 2025 02:16:56 GMT</pubDate>
      <guid>https://community.intel.com/t5/AI-Tools-from-Intel/oneAPI-DNNL-How-to-get-stat-memory-descriptor-in-C-API-from/m-p/1700754#M994</guid>
      <dc:creator>Ying_H_Intel</dc:creator>
      <dc:date>2025-07-01T02:16:56Z</dc:date>
    </item>
    <item>
      <title>Re: oneAPI DNNL: How to get stat memory descriptor in C API from layer normalization primitive</title>
      <link>https://community.intel.com/t5/AI-Tools-from-Intel/oneAPI-DNNL-How-to-get-stat-memory-descriptor-in-C-API-from/m-p/1700843#M997</link>
      <description>&lt;P&gt;Thanks, re-submitted in &lt;A href="https://github.com/uxlfoundation/oneDNN/issues/3508" target="_blank"&gt;https://github.com/uxlfoundation/oneDNN/issues/3508&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 01 Jul 2025 09:37:51 GMT</pubDate>
      <guid>https://community.intel.com/t5/AI-Tools-from-Intel/oneAPI-DNNL-How-to-get-stat-memory-descriptor-in-C-API-from/m-p/1700843#M997</guid>
      <dc:creator>Ladislav_K</dc:creator>
      <dc:date>2025-07-01T09:37:51Z</dc:date>
    </item>
  </channel>
</rss>

