| 643 | } |
| 644 | |
| 645 | dlpack::dltensor* ndarray_inc_ref(ndarray_handle* th) noexcept |
| 646 | { |
| 647 | if (!th) |
| 648 | return nullptr; |
| 649 | ++th->refcount; |
| 650 | return &th->ndarray->dltensor; |
| 651 | } |
| 652 | |
| 653 | void ndarray_dec_ref(ndarray_handle* th) noexcept |
| 654 | { |
no outgoing calls
no test coverage detected