<?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 Hello Radjaradja,  in Intel® oneAPI Math Kernel Library</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Batch-normalization-example/m-p/1125473#M25203</link>
    <description>&lt;P&gt;Hello Radjaradja,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for submitting the question about the Deep learning Batch normalization.&amp;nbsp; Do you have small test case for reproduce the issue?&amp;nbsp;&lt;/P&gt;&lt;P&gt;On the other hand, you may have known, considering the strong Deep learning compute request , we actually provide&amp;nbsp;&amp;nbsp;one dedicated&amp;nbsp; open source library&amp;nbsp; MKL-DNN&amp;nbsp; for that.&amp;nbsp; It's github address :&amp;nbsp;&amp;nbsp;https://github.com/intel/mkl-dnn&lt;BR /&gt;for example, you can find one whole sample in&amp;nbsp;&amp;nbsp;https://github.com/intel/mkl-dnn/blob/master/examples/simple_net.c and you can add Batch normalization part and let us know if&amp;nbsp;it can reproduce the problem&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Ying&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 03 Jan 2019 03:25:33 GMT</pubDate>
    <dc:creator>Ying_H_Intel</dc:creator>
    <dc:date>2019-01-03T03:25:33Z</dc:date>
    <item>
      <title>Batch normalization example</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Batch-normalization-example/m-p/1125472#M25202</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;This is my first program using MKL library and i want to include a simple batch normalization call after convolution. This is my code for BN&amp;nbsp;&lt;BR /&gt;Does anyone have an idea what i did wrong and why the execution of my code is failing ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;/*** BN1 section ***/&lt;/P&gt;&lt;P&gt;CHECK_ERR(dnnBatchNormalizationCreateForward_F64(&amp;amp;bn1, attributes, lt_conv1_output, 0), err);&lt;/P&gt;&lt;P&gt;resBn1[dnnResourceSrc] = resConv1[dnnResourceDst];&lt;/P&gt;&lt;P&gt;CHECK_ERR(dnnLayoutCreateFromPrimitive_F64(&amp;amp;lt_bn1_output, bn1, dnnResourceDst), err);&lt;/P&gt;&lt;P&gt;CHECK_ERR(dnnAllocateBuffer_F64((void **)&amp;amp;resBn1[dnnResourceDst], lt_bn1_output), err);&lt;/P&gt;&lt;P&gt;CHECK_ERR(init_conversion(&amp;amp;cv_relu1_to_user_output, &amp;amp;user_o, lt_user_output, lt_bn1_output, resBn1[dnnResourceDst]), err);&lt;/P&gt;&lt;P&gt;...............&lt;/P&gt;&lt;P&gt;CHECK_ERR(dnnExecute_F64(bn1, (void *)resBn1), err);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 02 Jan 2019 20:00:57 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Batch-normalization-example/m-p/1125472#M25202</guid>
      <dc:creator>radjaradja</dc:creator>
      <dc:date>2019-01-02T20:00:57Z</dc:date>
    </item>
    <item>
      <title>Hello Radjaradja, </title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Batch-normalization-example/m-p/1125473#M25203</link>
      <description>&lt;P&gt;Hello Radjaradja,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for submitting the question about the Deep learning Batch normalization.&amp;nbsp; Do you have small test case for reproduce the issue?&amp;nbsp;&lt;/P&gt;&lt;P&gt;On the other hand, you may have known, considering the strong Deep learning compute request , we actually provide&amp;nbsp;&amp;nbsp;one dedicated&amp;nbsp; open source library&amp;nbsp; MKL-DNN&amp;nbsp; for that.&amp;nbsp; It's github address :&amp;nbsp;&amp;nbsp;https://github.com/intel/mkl-dnn&lt;BR /&gt;for example, you can find one whole sample in&amp;nbsp;&amp;nbsp;https://github.com/intel/mkl-dnn/blob/master/examples/simple_net.c and you can add Batch normalization part and let us know if&amp;nbsp;it can reproduce the problem&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Ying&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 03 Jan 2019 03:25:33 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Batch-normalization-example/m-p/1125473#M25203</guid>
      <dc:creator>Ying_H_Intel</dc:creator>
      <dc:date>2019-01-03T03:25:33Z</dc:date>
    </item>
    <item>
      <title>Thank you for your answer.</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Batch-normalization-example/m-p/1125474#M25204</link>
      <description>&lt;P&gt;Thank you for your answer.&lt;/P&gt;&lt;P&gt;This is the whole example of my network&lt;/P&gt;&lt;P&gt;I tried to used mkldnn for my application but i read that mkl is more optimized and faster so I'm trying to rewrite my code using it&lt;/P&gt;</description>
      <pubDate>Thu, 03 Jan 2019 12:12:22 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Batch-normalization-example/m-p/1125474#M25204</guid>
      <dc:creator>radjaradja</dc:creator>
      <dc:date>2019-01-03T12:12:22Z</dc:date>
    </item>
    <item>
      <title>Hi Radjaradja, </title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Batch-normalization-example/m-p/1125475#M25205</link>
      <description>&lt;P&gt;Hi Radjaradja,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Actually, the Deep Neural Network (DNN) component in Intel MKL is deprecated and will be removed in a future release.&amp;nbsp; And the Open Source MKL-DNN have same or better performance.&amp;nbsp; for example, the Batch Normalization + ReLU was fused in CONV in MKL-DNN&amp;nbsp;&lt;/P&gt;&lt;P&gt;I run your case, and it returns&amp;nbsp;&lt;/P&gt;&lt;P&gt;ok&lt;BR /&gt;&lt;C&gt; err (-1)&lt;BR /&gt;FAILED&lt;BR /&gt;Press any key to continue . . .&lt;BR /&gt;As you see, the BN's input,&amp;nbsp; like&amp;nbsp; mean, variance, weights are required before to execute the BN.&amp;nbsp;&lt;/C&gt;&lt;/P&gt;&lt;P&gt;So maybe there is something goes wrong in BN. but as we remove them, i may suggest to look at &lt;A href="https://github.com/intel/mkl-dnn&amp;nbsp;" target="_blank"&gt;https://github.com/intel/mkl-dnn&amp;nbsp;&lt;/A&gt;; and&amp;nbsp;https://intel.github.io/mkl-dnn/structmkldnn_1_1batch__normalization__forward.html&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Ying &amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 08 Jan 2019 06:37:00 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Batch-normalization-example/m-p/1125475#M25205</guid>
      <dc:creator>Ying_H_Intel</dc:creator>
      <dc:date>2019-01-08T06:37:00Z</dc:date>
    </item>
  </channel>
</rss>

