Thanks for your reply!
I think it is a great proposal, and it can solve my question! Besides, I wonder why it only chooses to support tensor type in the share-memory?  Can it be extended to share other data type?