Re:Deep Learning in JavaScript
by eduardoleao052 on Friday March 29, 2024 @10:18AM
(#39864408)
Thats true, it’s a limitation of working between these languages. I tried to mitigate it by using clear JSDoc, so that each variable pops up alongside an explanation when calling a function.
[ Parent
| on HN ]
I feel you - Python has much better (more flexible) argument support than JavaScript in this case. Converting the entire set of arguments into a keyed object is usually what happens, but then it wouldn't look like PyTorch anymore.