ReLU (inplace = True), inplace = true where the meaning of

ReLU (inplace = True), inplace = true where the meaning of

待办

inplace=True means that it will modify the input directly, without allocating any additional output. It can sometimes slightly decrease the memory usage, but may not always be a valid operation (because the original input is destroyed). However, if you don’t see an error, it means that your use case is valid.

Modified directly in the original input memory input, no additional applications, no error can be used, save memory.

Guess you like

Origin www.cnblogs.com/lishikai/p/12366637.html