ReLU(inplace=True),這里的inplace=true的意思
待辦
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.
直接在原有輸入內存上修改輸入,不額外申請,不報錯就能用,節省內存。