pytorch-gpu-benchmark icon indicating copy to clipboard operation
pytorch-gpu-benchmark copied to clipboard

plot.ipynb does not work for parsing new results with pytorch 2.30

Open lamikr opened this issue 1 year ago • 0 comments

Generated results for AMD RX 6800. (https://github.com/ryujaehun/pytorch-gpu-benchmark/pull/28)

When I have the csv files in results folder and open plot with command jupyter-notebook plot.ipynb and execute the code I get following exceptions:

---------------------------------------------------------------------------
ValueError                                Traceback (most recent call last)
Cell In[4], line 3
      1 for csv in csv_list:
      2     df=pd.read_csv(csv)
----> 3     df.columns = pd.MultiIndex.from_tuples(columes)
      4     df.groupby(level=0,axis=1).mean().mean()
      5 #     print(csv)

File /opt/rocm_sdk_611/lib/python3.9/site-packages/pandas/core/generic.py:6313, in NDFrame.__setattr__(self, name, value)
   6311 try:
   6312     object.__getattribute__(self, name)
-> 6313     return object.__setattr__(self, name, value)
   6314 except AttributeError:
   6315     pass

File properties.pyx:69, in pandas._libs.properties.AxisProperty.__set__()

File /opt/rocm_sdk_611/lib/python3.9/site-packages/pandas/core/generic.py:814, in NDFrame._set_axis(self, axis, labels)
    809 """
    810 This is called from the cython code when we set the `index` attribute
    811 directly, e.g. `series.index = [1, 2, 3]`.
    812 """
    813 labels = ensure_index(labels)
--> 814 self._mgr.set_axis(axis, labels)
    815 self._clear_item_cache()

File /opt/rocm_sdk_611/lib/python3.9/site-packages/pandas/core/internals/managers.py:238, in BaseBlockManager.set_axis(self, axis, new_labels)
    236 def set_axis(self, axis: AxisInt, new_labels: Index) -> None:
    237     # Caller is responsible for ensuring we have an Index object.
--> 238     self._validate_set_axis(axis, new_labels)
    239     self.axes[axis] = new_labels

File /opt/rocm_sdk_611/lib/python3.9/site-packages/pandas/core/internals/base.py:98, in DataManager._validate_set_axis(self, axis, new_labels)
     95     pass
     97 elif new_len != old_len:
---> 98     raise ValueError(
     99         f"Length mismatch: Expected axis has {old_len} elements, new "
    100         f"values have {new_len} elements"
    101     )

ValueError: Length mismatch: Expected axis has 34 elements, new values have 71 elements

lamikr avatar Jun 07 '24 20:06 lamikr