onnxruntime
ba9a585f - Fix the tensor save for backward release problem (#13679)

Commit
3 years ago
Fix the tensor save for backward release problem (#13679) Motivation: PythonOp is saving input for backward, it's risky since ONNX Runtime backend is not aware of this, the tensor buffer may be "released" by ORT, then potentially modified by other operators before backward function executes. Fix: This pr just clone all input of PythonOp before forward is invoked. This may be high overhead, it's just a workaround before a better fix.
Author
Parents
Loading