32 subscribers
התחל במצב לא מקוון עם האפליקציה Player FM !
פודקאסטים ששווה להאזין
בחסות


1 Battle Camp: Final 5 Episodes with Dana Moon + Interview with the Winner! 1:03:29
Binding C++ objects to Python
Manage episode 291705913 series 2921809
In this episode, we will discuss how to bind a C++ object in Python? We'll try to answer the following questions: How does pybind11 do it? What's different about how we implement it for Tensor? What are some downsides of the approach?
Note from the future: I recorded and then decided I didn't like my follow up episode about how to preserve PyObjects even when they go dead in Python. Maybe some day!
Further reading:
- Python bindings for Tensor in PyTorch https://github.com/.../csrc/autograd/python_variable.cpp
- pybind11 hash map for maintaining object identity https://github.com/.../inc.../pybind11/detail/internals.h...
- Tensor subclasses don't save their properties https://github.com/pytorch/pytorch/issues/47117
(but the situation here is more complicated than I imply in the podcast)
83 פרקים
Manage episode 291705913 series 2921809
In this episode, we will discuss how to bind a C++ object in Python? We'll try to answer the following questions: How does pybind11 do it? What's different about how we implement it for Tensor? What are some downsides of the approach?
Note from the future: I recorded and then decided I didn't like my follow up episode about how to preserve PyObjects even when they go dead in Python. Maybe some day!
Further reading:
- Python bindings for Tensor in PyTorch https://github.com/.../csrc/autograd/python_variable.cpp
- pybind11 hash map for maintaining object identity https://github.com/.../inc.../pybind11/detail/internals.h...
- Tensor subclasses don't save their properties https://github.com/pytorch/pytorch/issues/47117
(but the situation here is more complicated than I imply in the podcast)
83 פרקים
כל הפרקים
×








1 Dispatcher questions with Sherlock 18:36





1 Tensor subclasses and Liskov substitution principle 19:13


1 DataLoader with multiple workers leaks memory 16:38


1 Multiple dispatch in __torch_function__ 14:20


1 Asynchronous versus synchronous execution 15:03


1 torch.use_deterministic_algorithms 10:50




1 API design via lexical and dynamic scoping 21:44















ברוכים הבאים אל Player FM!
Player FM סורק את האינטרנט עבור פודקאסטים באיכות גבוהה בשבילכם כדי שתהנו מהם כרגע. זה יישום הפודקאסט הטוב ביותר והוא עובד על אנדרואיד, iPhone ואינטרנט. הירשמו לסנכרון מנויים במכשירים שונים.