Skip to content

[FFI][BUGFIX] Fix memory leak when Pac callback argument is NDArray - #6744

Merged
tqchen merged 3 commits into
apache:mainfrom
tqchen:ffi
Oct 24, 2020
Merged

[FFI][BUGFIX] Fix memory leak when Pac callback argument is NDArray#6744
tqchen merged 3 commits into
apache:mainfrom
tqchen:ffi

Conversation

@tqchen

@tqchen tqchen commented Oct 23, 2020

Copy link
Copy Markdown
Member

Co-authored-by: Matthew Brookhart mbrookhart@octoml.ai

Co-authored-by: Matthew Brookhart <mbrookhart@octoml.ai>
@tqchen

tqchen commented Oct 23, 2020

Copy link
Copy Markdown
Member Author

kudos to @mbrookhart who uncovered this bug initially

@tqchen

tqchen commented Oct 23, 2020

Copy link
Copy Markdown
Member Author

@mbrookhart mbrookhart left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the fast turn arround! This fixes several subtle bugs I've been dealing with lately.

@tqchen

tqchen commented Oct 23, 2020

Copy link
Copy Markdown
Member Author

Also pushed fix for jvm and rust, would be great if @jroesch @yzhliu can followup PR with test cases that reflects the python one. I will work a bit to revamp the typescript test later

Comment thread rust/tvm-rt/src/to_function.rs Outdated
Co-authored-by: Junru Shao <junrushao1994@gmail.com>
@tqchen
tqchen merged commit fc69f68 into apache:main Oct 24, 2020
trevor-m pushed a commit to trevor-m/tvm that referenced this pull request Oct 29, 2020
…pache#6744)

* [FFI][BUGFIX] Fix leak when Packed callback arg is ndarray.

Co-authored-by: Matthew Brookhart <mbrookhart@octoml.ai>

* Fix for rust ts and jvm

* Update rust/tvm-rt/src/to_function.rs

Co-authored-by: Junru Shao <junrushao1994@gmail.com>

Co-authored-by: Matthew Brookhart <mbrookhart@octoml.ai>
Co-authored-by: Junru Shao <junrushao1994@gmail.com>
tqchen added a commit to tqchen/tvm that referenced this pull request Nov 2, 2020
…pache#6744)

* [FFI][BUGFIX] Fix leak when Packed callback arg is ndarray.

Co-authored-by: Matthew Brookhart <mbrookhart@octoml.ai>

* Fix for rust ts and jvm

* Update rust/tvm-rt/src/to_function.rs

Co-authored-by: Junru Shao <junrushao1994@gmail.com>

Co-authored-by: Matthew Brookhart <mbrookhart@octoml.ai>
Co-authored-by: Junru Shao <junrushao1994@gmail.com>
tqchen added a commit that referenced this pull request Nov 2, 2020
…6744) (#6821)


Co-authored-by: Matthew Brookhart <mbrookhart@octoml.ai>
Co-authored-by: Junru Shao <junrushao1994@gmail.com>
trevor-m pushed a commit to trevor-m/tvm that referenced this pull request Dec 2, 2020
…pache#6744)

* [FFI][BUGFIX] Fix leak when Packed callback arg is ndarray.

Co-authored-by: Matthew Brookhart <mbrookhart@octoml.ai>

* Fix for rust ts and jvm

* Update rust/tvm-rt/src/to_function.rs

Co-authored-by: Junru Shao <junrushao1994@gmail.com>

Co-authored-by: Matthew Brookhart <mbrookhart@octoml.ai>
Co-authored-by: Junru Shao <junrushao1994@gmail.com>
trevor-m pushed a commit to trevor-m/tvm that referenced this pull request Dec 4, 2020
…pache#6744)

* [FFI][BUGFIX] Fix leak when Packed callback arg is ndarray.

Co-authored-by: Matthew Brookhart <mbrookhart@octoml.ai>

* Fix for rust ts and jvm

* Update rust/tvm-rt/src/to_function.rs

Co-authored-by: Junru Shao <junrushao1994@gmail.com>

Co-authored-by: Matthew Brookhart <mbrookhart@octoml.ai>
Co-authored-by: Junru Shao <junrushao1994@gmail.com>
trevor-m pushed a commit to neo-ai/tvm that referenced this pull request Dec 4, 2020
…pache#6744)

* [FFI][BUGFIX] Fix leak when Packed callback arg is ndarray.

Co-authored-by: Matthew Brookhart <mbrookhart@octoml.ai>

* Fix for rust ts and jvm

* Update rust/tvm-rt/src/to_function.rs

Co-authored-by: Junru Shao <junrushao1994@gmail.com>

Co-authored-by: Matthew Brookhart <mbrookhart@octoml.ai>
Co-authored-by: Junru Shao <junrushao1994@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants