Timeline for String art program in Python using PyTorch
Current License: CC BY-SA 4.0
4 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Jun 27, 2024 at 20:10 | vote | accept | flakpm | ||
| Jun 27, 2024 at 19:57 | comment | added | flakpm | "Furthermore, the very next line erases a bunch of lines. Can't you determine first which lines you want to keep, and only draw those?" It is only one line that gets erased, the one drawn with the same start and end point because of dividing by zero. Does that really have a noticeable effect on performance? Either way if I switch to using a Numba jit loop it is as simple as an if check before drawing the line, I just didn't know how to skip drawing the in the bulk tensor. | |
| Jun 27, 2024 at 17:41 | history | edited | Cris Luengo | CC BY-SA 4.0 |
added 43 characters in body
|
| Jun 27, 2024 at 17:33 | history | answered | Cris Luengo | CC BY-SA 4.0 |