jax
269d7ce5 - Remove take_ownership support in DLPack.

Commit
2 years ago
Remove take_ownership support in DLPack. When take_ownership is true, the original buffer is marked as deleted and enforced that JAX won't attempt to read or write the buffer. This provides better error checking but at the cost of one more C++ API and two more C APIs. The same semantic can be achieved by not using take_ownership and being careful. Therefore we decided to remove take_ownership support in DLPack. PiperOrigin-RevId: 572278488
Author
Jieying Luo
Committer
Parents
Loading