sess.run() returns two parameters, the first parameter is saved in a variable named _. If _ is printed separately, it represents the value of the latest expression
means that func is supposed to return two variables, but you only want to receive the latter variable, so use _ to occupy a position to indicate that it has been received
Variables that can be ignored
_ Just a placeholder
If you are in REPL,
_
can represent the return value of the previous stepFor example
represents the variable name
sess.run() returns two parameters, the first parameter is saved in a variable named _. If _ is printed separately, it represents the value of the latest expression
Indicates variables that will be discarded, crying face
means that func is supposed to return two variables, but you only want to receive the latter variable, so use
_
to occupy a position to indicate that it has been received