There was a problem hiding this comment.
Sorry, something went wrong.
|
Also I forgot to mention this earlier. median_cpu and canny_cpu are failing consistently across all CPU jobs on Ubuntu 20.04 now. |
Sorry, something went wrong.
There was a problem hiding this comment.
Couple of more minor improvements.
Sorry, something went wrong.
There was a problem hiding this comment.
Looks good but I have some queries about the node hashing, but we can discuss those over chat
Sorry, something went wrong.
Better manage the reference count of an Array object when it is used in a JIT operation
Description
Previously when an af::array was used in a jit operation and it was backed by a
buffer, a buffer node was created and the internal shared_ptr was stored in the
Array for future use and returned when getNode was called. This increased the
reference count of the internal buffer. This reference count never decreased
because of the internal reference to the shared_ptr.
This commit changes this behavior by storing a weak_ptr instead of a
shared_ptr inernally to the Array object. This change reduces the
reference count once the Array is evaluated in an expression. If
the weak_ptr can be converted into a
Changes to Users
Enjoy lower reference counts. This may increase performance under certain scenarios
Checklist