[英]Trying to Perform Vtune Analysis Using Python 3.6
我使用 python 3.6 創建了 Tensor Flow (1.15.5) 環境
Model 名稱:Intel(R) Xeon(R) CPU E5-2680 v4 @ 2.40GHz
操作系統:Ubuntu 18.04.5 LTS
import tensorflow as tf
w1=tf.Variable(tf.random_normal(([2,3]),stddev=1.0,seed=1) )
我試圖在 tensorflow 環境中運行 Intel Vtune Analysis。
vtune --collect hotspot python train.py
使用此命令后出現錯誤。 如何修復此錯誤。
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.
您可能會收到此錯誤,因為您的 python 版本已過期。 請參考https://endoflife.date/python
請嘗試安裝更高版本,即 3.7 或更高版本。
conda install python==3.7
嘗試使用 python 3.7 時不存在此問題,如下所示:
(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.
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.