onnx-mlir
onnx-mlir copied to clipboard
Refine memory management for SeqType
KrnlSeqAlloc and KrnlSeqDealloc are introduced to support deep deallocation for the sequence type. The lowering of onnx sequence ops are changed according to the new design, which is described in docs/SequenceType.md. The new design guarantees there is no memory leak or dangling pointer for operations on onnx sequence type.
@AlexandreEichenberger I made changes according to your comments.
Jenkins Linux ppc64le Build #7294 [push] Refine memory management... started at 16:05
Jenkins Linux amd64 Build #8228 [push] Refine memory management... started at 15:05
Jenkins Linux s390x Build #8244 [push] Refine memory management... started at 16:05
Jenkins Linux amd64 Build #8228 [push] Refine memory management... passed after 1 hr 4 min
Jenkins Linux s390x Build #8244 [push] Refine memory management... passed after 1 hr 26 min
Jenkins Linux ppc64le Build #7294 [push] Refine memory management... passed after 1 hr 37 min