HabanaAI / Model-References

Reference models for Intel(R) Gaudi(R) AI Accelerator
141 stars 67 forks source link

Syntax Error in Line 61 : unet2d.py #23

Closed hitesh-anand closed 1 year ago

hitesh-anand commented 1 year ago

Hi, I have been trying to run the unet2d.py on single Gaudi card. I have followed the steps mentioned here.

I am getting the following error : File "unet2d.py", line 61 log_dir = os.path.join(logdir, f'worker{hvd.rank()}') ^ SyntaxError: invalid syntax

Even when I am not using the --tensorboard_logging, I am getting the same error.

Can someone help in resolving this issue? Thanks

ssarkar2 commented 1 year ago

Are you using python2 or python3? Asking because it complains "invalid syntax" and the line has a "f-string" which is not supported on python2

mandy-li commented 1 year ago

@hitesh-anand please re-open if the problem still occurs with Python3.