简体   繁体   中英

SyntaxError: EOL while scanning string literal 1

enter image description here What do I need to do to make this code work? The brackets seems to be in the right place

This is happening probably because you've copied some part of code from web, or have by mistake used '`' special character instead of "'"(single quote)
This error is present in 3 lines because of special character:

Line 6 (after relu word)
Line 7 (after relu word)
Line 9 (around softmax).

activation=`relu'

In this you have used this ` symbol to start it and you have ended it using ' - single quotes. It starts treating the line after the single quotes as string. So, this error has occured

I think, problem with symbols. ' is not '

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM