Syntax Error

(Shivang Mathur) #1

I am getting the following error although i am using Python 3.6. Please help me resolve this error.

File “fastai/torch_imports.py”, line 45 if pre: load_model(m, f’{path}/weights/{fn}.pth’) ^ SyntaxError: invalid syntax

0 Likes

(Kushajveer Singh) #2

Can you share some code, where you are getting error. Also, can you confirm your fastai version.

0 Likes

(Ruben) #3

It is difficult to help you with your syntax if you don’t show the code

I’d recommend to read some results from here http://bfy.tw/NFpF

0 Likes

(Kushajveer Singh) #4

The link you shared, no words to express it.:heart_eyes:

0 Likes

(Shivang Mathur) #5

Thank you everyone for the help. The issue is now resolved.

0 Likes

(Ruben) #6

I am glad to hear that.

Since these forums are for everyone to learn, would you mind explaining the issue & solution?

In that way, the next person who searches for your error will find the at least one answer straight away and will be thankful to you for posting it.

0 Likes