Submitted by vprokopev t3_zqo8jm in MachineLearning
Every time I try to implement something I have to make sure I never use loops and I only use Pytorch/tf tensors.
If I want to have efficient code, I must kind of abandon Python and only use data structures and operations that are provided by those frameworks.
Every time I have a solution in my head, I must think how do Implement it using ONLY the framework, and not the programming language (python).
We basically constraint ourselves to those limited operations that someone implemented in C++ for us. This make things harder, not easier.
We are not programming in python at all. We use a language within a language that really constraints us.
Why not just move to C++ or something new like Rust/Go?
dumbmachines t1_j0zlr39 wrote
If you're using pytorch, what's stopping you from using the C++ api? Seems like it is exactly what you are asking for.