oneAPI-samples icon indicating copy to clipboard operation
oneAPI-samples copied to clipboard

profile_utils.py:164 causes warning message

Open shuangpe opened this issue 2 years ago • 3 comments

Summary

The profile_utils.py causes following annoying warning messages. Please figure out a way to eliminate it.

profile_utils.py:164: SettingWithCopyWarning: 
A value is trying to be set on a copy of a slice from a DataFrame.
Try using .loc[row_indexer,col_indexer] = value instead

See the caveats in the documentation: https://pandas.pydata.org/pandas-docs/stable/user_guide/indexing.html#returning-a-view-versus-a-copy
  data['time'] = data['time'].astype(float)

Version

Python 3.10.6 Pandas 1.5.3

Environment

Ubuntu 22.04.1 LTS

Steps to reproduce

python3 profile_utils.py

Observed behavior

The annoying warning messages presented above

Expected behavior

No warning messages presented in the console output

shuangpe avatar Feb 20 '23 03:02 shuangpe

OneSmpl_Team3 working on this.

sau0 avatar Apr 26 '23 06:04 sau0

(OneSmpl_Team3) - @shuangpe We tried running this code with various arguments, but we see no warnings coming. PFB screenshot of the result: image

kumarva1 avatar Apr 27 '23 12:04 kumarva1

Summary

The profile_utils.py causes following annoying warning messages. Please figure out a way to eliminate it.

Hi @shuangpe, this is a known bug when parsing oneDNN log with included info lines or non-onednn verbose outputs in the log somwhere.

Could you share the log you were using in this case?

yehudaorel avatar Apr 27 '23 14:04 yehudaorel