pymc-devs / pymc-devs/pytensor
Use PyCapsule in CThunks instead of numpy compatibility layer
Open
Nobody has claimed this yet.
C-backend
- Dominant language
- Python
- Stars
- 644
- Forks
- 208
- Avg merge
- 2d 14h
- Merged PRs (30d)
- 16
Description
Description
This seems to have been used around the Python2.x transition, we should probably get up with the times:
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with pytensor/link/c/cutils.py at the linked lines and trace how CThunks uses the NumPy compatibility layer. Replace that dependency with PyCapsule while preserving the existing CThunks behavior; done means CThunks no longer relies on the compatibility layer.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- c, numpy, python
- Domain
- backend
- Issue type
- Refactor
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100