<?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: error when using vtune to profile tensorflow file in Analyzers</title>
    <link>https://community.intel.com/t5/Analyzers/error-when-using-vtune-to-profile-tensorflow-file/m-p/1406418#M22433</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Good day to you.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for posting in Intel Communities.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;We tried profiling a code that contains TensorFlow from our side and was unable to get the above mentioned error.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;To assist you better, can you get back to us with the following information so that we can try replicate the exact that you are facing from our side:&lt;/P&gt;
&lt;P&gt;1. A &lt;STRONG&gt;sample reproducer code&lt;/STRONG&gt; that exhibits this issue&lt;/P&gt;
&lt;P&gt;2. The VTune version that you are using. (Type &lt;STRONG&gt;vtune -V&lt;/STRONG&gt; in a terminal window in a terminal window to get this information)&lt;/P&gt;
&lt;P&gt;3. The Python version that you are using. (Type &lt;STRONG&gt;python -V&lt;/STRONG&gt; in a terminal window to get this information)&lt;/P&gt;
&lt;P&gt;4. The TensorFlow version that you are using. (Type &lt;STRONG&gt;python -c "import tensorflow as tf; print(tf.__version__)"&lt;/STRONG&gt;&amp;nbsp;in a terminal window to get this information)&lt;/P&gt;
&lt;P&gt;5. The processor model and the OS name and version in which you are running the Intel VTune profiler&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Jyothis V James&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 16 Aug 2022 21:51:35 GMT</pubDate>
    <dc:creator>JyothisV_Intel</dc:creator>
    <dc:date>2022-08-16T21:51:35Z</dc:date>
    <item>
      <title>error when using vtune to profile tensorflow file</title>
      <link>https://community.intel.com/t5/Analyzers/error-when-using-vtune-to-profile-tensorflow-file/m-p/1405703#M22419</link>
      <description>&lt;P&gt;I tried to use vtune to profile my tensorflow python file:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;vtune --collect hotspot python train.py&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;and got this error:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;vtune: Error: Valid setenv symbol is not found in the binary of the analysis target.
vtune: Error: Binary file of the analysis target does not contain symbols required for profiling. See the 'Analyzing Statically Linked Binaries' help topic for more details.&lt;/LI-CODE&gt;
&lt;P&gt;and if I delete code related to tensorflow, the error will not occur.&lt;/P&gt;
&lt;P&gt;Any help to solve this problem is apprciated !&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;AUDIO style="display: none;" controls="controls"&gt;&lt;/AUDIO&gt;&lt;/P&gt;
&lt;P&gt;&lt;AUDIO style="display: none;" controls="controls"&gt;&lt;/AUDIO&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 03 Aug 2022 12:18:29 GMT</pubDate>
      <guid>https://community.intel.com/t5/Analyzers/error-when-using-vtune-to-profile-tensorflow-file/m-p/1405703#M22419</guid>
      <dc:creator>lethean</dc:creator>
      <dc:date>2022-08-03T12:18:29Z</dc:date>
    </item>
    <item>
      <title>Re: error when using vtune to profile tensorflow file</title>
      <link>https://community.intel.com/t5/Analyzers/error-when-using-vtune-to-profile-tensorflow-file/m-p/1406418#M22433</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Good day to you.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for posting in Intel Communities.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;We tried profiling a code that contains TensorFlow from our side and was unable to get the above mentioned error.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;To assist you better, can you get back to us with the following information so that we can try replicate the exact that you are facing from our side:&lt;/P&gt;
&lt;P&gt;1. A &lt;STRONG&gt;sample reproducer code&lt;/STRONG&gt; that exhibits this issue&lt;/P&gt;
&lt;P&gt;2. The VTune version that you are using. (Type &lt;STRONG&gt;vtune -V&lt;/STRONG&gt; in a terminal window in a terminal window to get this information)&lt;/P&gt;
&lt;P&gt;3. The Python version that you are using. (Type &lt;STRONG&gt;python -V&lt;/STRONG&gt; in a terminal window to get this information)&lt;/P&gt;
&lt;P&gt;4. The TensorFlow version that you are using. (Type &lt;STRONG&gt;python -c "import tensorflow as tf; print(tf.__version__)"&lt;/STRONG&gt;&amp;nbsp;in a terminal window to get this information)&lt;/P&gt;
&lt;P&gt;5. The processor model and the OS name and version in which you are running the Intel VTune profiler&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Jyothis V James&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 16 Aug 2022 21:51:35 GMT</pubDate>
      <guid>https://community.intel.com/t5/Analyzers/error-when-using-vtune-to-profile-tensorflow-file/m-p/1406418#M22433</guid>
      <dc:creator>JyothisV_Intel</dc:creator>
      <dc:date>2022-08-16T21:51:35Z</dc:date>
    </item>
    <item>
      <title>Re: Re:error when using vtune to profile tensorflow file</title>
      <link>https://community.intel.com/t5/Analyzers/error-when-using-vtune-to-profile-tensorflow-file/m-p/1406647#M22437</link>
      <description>&lt;P&gt;1.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;import tensorflow as tf

w1=tf.Variable(tf.random_normal(([2,3]),stddev=1.0,seed=1) ) &lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;2.&amp;nbsp; Intel(R) VTune(TM) Profiler 2022.2.0 (build 623516) Command Line Tool&lt;/P&gt;
&lt;P&gt;3.&amp;nbsp; Python 3.6.12 :: Anaconda, Inc.&lt;/P&gt;
&lt;P&gt;4.&amp;nbsp; 1.15.5&lt;/P&gt;
&lt;P&gt;5.&amp;nbsp;Model name: Intel(R) Xeon(R) CPU E5-2680 v4 @ 2.40GHz&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; OS：Ubuntu 18.04.5 LTS&lt;/P&gt;
&lt;P&gt;&amp;nbsp;Thanks！&lt;/P&gt;
&lt;P&gt;&lt;AUDIO style="display: none;" controls="controls"&gt;&lt;/AUDIO&gt;&lt;/P&gt;
&lt;P&gt;&lt;AUDIO style="display: none;" controls="controls"&gt;&lt;/AUDIO&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 08 Aug 2022 03:18:15 GMT</pubDate>
      <guid>https://community.intel.com/t5/Analyzers/error-when-using-vtune-to-profile-tensorflow-file/m-p/1406647#M22437</guid>
      <dc:creator>lethean</dc:creator>
      <dc:date>2022-08-08T03:18:15Z</dc:date>
    </item>
    <item>
      <title>Re: error when using vtune to profile tensorflow file</title>
      <link>https://community.intel.com/t5/Analyzers/error-when-using-vtune-to-profile-tensorflow-file/m-p/1408670#M22472</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Good day to you.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for getting back to us with all the necessary details. We tried replicating your issue from our side on a system with the following environment configuration and was able to get the same error.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="bash"&gt;(tf) :~$ vtune -V
Intel(R) VTune(TM) Profiler 2022.3.0 (build 624050) Command Line Tool
Copyright (C) 2009 Intel Corporation. All rights reserved.

(tf) :~$ python -V
Python 3.6.12 :: Anaconda, Inc.

(tf) :~$ python -c "import tensorflow as tf; print(tf.__version__)"
1.15.0&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You are getting this error since the environment in which you are trying to perform Intel VTune analysis is using an outdated end-of-life Python version (Refer &lt;A href="https://endoflife.date/python" target="_blank" rel="noopener"&gt;https://endoflife.date/python&lt;/A&gt;)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Kindly try upgrading the Python version of the environment in which you are running the code or analysis using the command below:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="bash"&gt;conda install python==3.7&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The issue is not present when using Python version 3.7 and above as shown below:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="bash"&gt;(tf) :~$ cat train.py
import tensorflow as tf
w1=tf.Variable(tf.random_normal(([2,3]),stddev=1.0,seed=1))

(tf) :~$ vtune -V
Intel(R) VTune(TM) Profiler 2022.3.0 (build 624050) Command Line Tool
Copyright (C) 2009 Intel Corporation. All rights reserved.

(tf) :~$ python -V
Python 3.7.0

(tf) :~$ python -c "import tensorflow as tf; print(tf.__version__)"
1.15.0

(tf) :~$ vtune --collect hotspots python train.py
vtune: Collection started. To stop the collection, either press CTRL-C or enter from another console window: vtune -r /home/jyothisvjames/r002hs -command stop.
WARNING:tensorflow:From train.py:2: The name tf.random_normal is deprecated. Please use tf.random.normal instead.
vtune: Collection stopped.&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If this resolves your issue, make sure to accept this as a solution. This would help others with similar issues.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks and Regards,&lt;/P&gt;
&lt;P&gt;Jyothis V James&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 16 Aug 2022 21:52:59 GMT</pubDate>
      <guid>https://community.intel.com/t5/Analyzers/error-when-using-vtune-to-profile-tensorflow-file/m-p/1408670#M22472</guid>
      <dc:creator>JyothisV_Intel</dc:creator>
      <dc:date>2022-08-16T21:52:59Z</dc:date>
    </item>
    <item>
      <title>Re:error when using vtune to profile tensorflow file</title>
      <link>https://community.intel.com/t5/Analyzers/error-when-using-vtune-to-profile-tensorflow-file/m-p/1409770#M22481</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Good day to you.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;We have not heard back from you. Has the work-around solution helped you resolve your issue? If yes, kindly accept this as a solution as it will help others with a similar issue; else do let us know so that we can assist you better.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Thanks and Regards,&lt;/P&gt;&lt;P&gt;Jyothis V James&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 22 Aug 2022 06:04:21 GMT</pubDate>
      <guid>https://community.intel.com/t5/Analyzers/error-when-using-vtune-to-profile-tensorflow-file/m-p/1409770#M22481</guid>
      <dc:creator>JyothisV_Intel</dc:creator>
      <dc:date>2022-08-22T06:04:21Z</dc:date>
    </item>
    <item>
      <title>Re: Re:error when using vtune to profile tensorflow file</title>
      <link>https://community.intel.com/t5/Analyzers/error-when-using-vtune-to-profile-tensorflow-file/m-p/1410151#M22486</link>
      <description>&lt;P&gt;It works! Thanks so much!!!&lt;/P&gt;
&lt;P&gt;&lt;AUDIO style="display: none;" controls="controls"&gt;&lt;/AUDIO&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 23 Aug 2022 14:05:08 GMT</pubDate>
      <guid>https://community.intel.com/t5/Analyzers/error-when-using-vtune-to-profile-tensorflow-file/m-p/1410151#M22486</guid>
      <dc:creator>lethean</dc:creator>
      <dc:date>2022-08-23T14:05:08Z</dc:date>
    </item>
    <item>
      <title>Re:error when using vtune to profile tensorflow file</title>
      <link>https://community.intel.com/t5/Analyzers/error-when-using-vtune-to-profile-tensorflow-file/m-p/1410160#M22487</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Good day to you.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Thanks for accepting our solution and we are glad to know that your issue is resolved.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;If you need any additional information, please post a new question as this thread will no longer be monitored by Intel.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Thanks and Regards,&lt;/P&gt;&lt;P&gt;Jyothis V James&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 23 Aug 2022 14:28:38 GMT</pubDate>
      <guid>https://community.intel.com/t5/Analyzers/error-when-using-vtune-to-profile-tensorflow-file/m-p/1410160#M22487</guid>
      <dc:creator>JyothisV_Intel</dc:creator>
      <dc:date>2022-08-23T14:28:38Z</dc:date>
    </item>
  </channel>
</rss>

