<?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 &amp;quot;could not initialize a memory descriptor&amp;quot; error using tensorflow on windows in Intel® oneAPI Math Kernel Library</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/quot-could-not-initialize-a-memory-descriptor-quot-error-using/m-p/1164549#M28146</link>
    <description>&lt;P&gt;I've built tensorflow (r1.9, using the CMake tools) linked with MKL (v2018 U3) and mkl-dnn (v0.15).&amp;nbsp;&lt;SPAN style="font-size: 1em;"&gt;I'm running windows 10 (build 17134) on an Intel Core i7-7820HQ CPU.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;I've built mkl-dnn from source and it's test are passing. However, a C++ project that loads a pre-trained tensorflow graph and passes an image for inference gives the following error when calling Session::run() :&lt;/P&gt;

&lt;PRE class="brush:plain; class-name:dark;"&gt;W d:\dev\tensorflow\tensorflow\core\framework\op_kernel.cc:1318] OP_REQUIRES failed at mkl_conv_ops.cc:888 : Aborted: Operation received an exception:Status: 3, message: could not initialize a memory descriptor, in file d:\dev\tensorflow\tensorflow\core\kernels\mkl_conv_ops.cc:886
Aborted: Operation received an exception:Status: 3, message: could not initialize a memory descriptor, in file d:\dev\tensorflow\tensorflow\core\kernels\mkl_conv_ops.cc:886
         [[Node: conv1/BiasAdd = _MklConv2DWithBias[T=DT_FLOAT, _kernel="MklOp", data_format="NHWC", dilations=[1, 1, 1, 1], padding="VALID", strides=[1, 2, 2, 1], use_cudnn_on_gpu=true, _device="/job:localhost/replica:0/task:0/device:CPU:0"](conv1_pad/Pad, conv1/kernel, conv1/bias, DMT/_0, DMT/_1, DMT/_2)]]&lt;/PRE&gt;

&lt;P&gt;The same code (with the same pre-trained model) does work on a linux machine (&lt;SPAN style="font-size: 13.008px;"&gt;Intel(R) Xeon(R) CPU E5-2673 v3,&amp;nbsp;&lt;/SPAN&gt;running on Microsoft Azure), also with TF built with mkl-dnn.&lt;/P&gt;

&lt;P&gt;Also a github issue on the TF repo:&lt;BR /&gt;
	&lt;A href="https://github.com/tensorflow/tensorflow/issues/21334" target="_blank"&gt;https://github.com/tensorflow/tensorflow/issues/21334&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;What am I doing wrong?&lt;/P&gt;

&lt;P&gt;Thanks.&lt;/P&gt;</description>
    <pubDate>Wed, 01 Aug 2018 12:09:35 GMT</pubDate>
    <dc:creator>SYage</dc:creator>
    <dc:date>2018-08-01T12:09:35Z</dc:date>
    <item>
      <title>"could not initialize a memory descriptor" error using tensorflow on windows</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/quot-could-not-initialize-a-memory-descriptor-quot-error-using/m-p/1164549#M28146</link>
      <description>&lt;P&gt;I've built tensorflow (r1.9, using the CMake tools) linked with MKL (v2018 U3) and mkl-dnn (v0.15).&amp;nbsp;&lt;SPAN style="font-size: 1em;"&gt;I'm running windows 10 (build 17134) on an Intel Core i7-7820HQ CPU.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;I've built mkl-dnn from source and it's test are passing. However, a C++ project that loads a pre-trained tensorflow graph and passes an image for inference gives the following error when calling Session::run() :&lt;/P&gt;

&lt;PRE class="brush:plain; class-name:dark;"&gt;W d:\dev\tensorflow\tensorflow\core\framework\op_kernel.cc:1318] OP_REQUIRES failed at mkl_conv_ops.cc:888 : Aborted: Operation received an exception:Status: 3, message: could not initialize a memory descriptor, in file d:\dev\tensorflow\tensorflow\core\kernels\mkl_conv_ops.cc:886
Aborted: Operation received an exception:Status: 3, message: could not initialize a memory descriptor, in file d:\dev\tensorflow\tensorflow\core\kernels\mkl_conv_ops.cc:886
         [[Node: conv1/BiasAdd = _MklConv2DWithBias[T=DT_FLOAT, _kernel="MklOp", data_format="NHWC", dilations=[1, 1, 1, 1], padding="VALID", strides=[1, 2, 2, 1], use_cudnn_on_gpu=true, _device="/job:localhost/replica:0/task:0/device:CPU:0"](conv1_pad/Pad, conv1/kernel, conv1/bias, DMT/_0, DMT/_1, DMT/_2)]]&lt;/PRE&gt;

&lt;P&gt;The same code (with the same pre-trained model) does work on a linux machine (&lt;SPAN style="font-size: 13.008px;"&gt;Intel(R) Xeon(R) CPU E5-2673 v3,&amp;nbsp;&lt;/SPAN&gt;running on Microsoft Azure), also with TF built with mkl-dnn.&lt;/P&gt;

&lt;P&gt;Also a github issue on the TF repo:&lt;BR /&gt;
	&lt;A href="https://github.com/tensorflow/tensorflow/issues/21334" target="_blank"&gt;https://github.com/tensorflow/tensorflow/issues/21334&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;What am I doing wrong?&lt;/P&gt;

&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Wed, 01 Aug 2018 12:09:35 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/quot-could-not-initialize-a-memory-descriptor-quot-error-using/m-p/1164549#M28146</guid>
      <dc:creator>SYage</dc:creator>
      <dc:date>2018-08-01T12:09:35Z</dc:date>
    </item>
    <item>
      <title>Hello,</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/quot-could-not-initialize-a-memory-descriptor-quot-error-using/m-p/1164550#M28147</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;

&lt;P&gt;Thanks for your question. I'd like to recommend you to ask tensorflow related question in tensorflow&amp;nbsp;github to get proper answer.&amp;nbsp;&lt;/P&gt;

&lt;P&gt;Thanks,&lt;/P&gt;

&lt;P&gt;Alice&lt;/P&gt;</description>
      <pubDate>Thu, 02 Aug 2018 08:02:12 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/quot-could-not-initialize-a-memory-descriptor-quot-error-using/m-p/1164550#M28147</guid>
      <dc:creator>Alice_H_Intel</dc:creator>
      <dc:date>2018-08-02T08:02:12Z</dc:date>
    </item>
  </channel>
</rss>

