Discussions>AttributeError: 'FunctionEventAvg' object has no attribute 'name'>

AttributeError: 'FunctionEventAvg' object has no attribute 'name'

I am using PyTorch 1.6 profiler and want to trace the results for chrome visualization, but I get an error, which should not be there and is related to the native code of PyTorch. How to fix it?

Traceback (most recent call last):
  File "/home/user/project/script.py", line 93, in <module>
    print(prof.key_averages().export_chrome_trace('/home/user/paths/trace_file'))
  File "/home/user/.local/lib/python3.6/site-packages/torch/autograd/profiler.py", line 154, in export_chrome_trace
    evt.name,
AttributeError: 'FunctionEventAvg' object has no attribute 'name'
2 votesLP262.00
0 Answers
Couldn't find what you were looking for?and we will find an expert to answer.
How helpful was this page?