Submitted by Atom_101 t3_1050cw1 in MachineLearning
psychorameses t1_j3av5f9 wrote
Reply to comment by dr-pork in [D] Best way to package Pytorch models as a standalone application by Atom_101
Through a web API, sure. Locally, no.
Python fundamentally is a scripting language. It isn't pre-compiled into binary. It literally needs the source code to run.
It's ok, a whole lot of people including my boss have made the exact same mistake and asked the exact same question.
dr-pork t1_j3gh3ke wrote
psychorameses t1_j3hxgzs wrote
Best way to think of it is that it scrambles your code, but right before it runs it still needs to be unscrambled, so someone dedicated enough will be able to obtain the full source code (or at least byte code) anyway.
I hope my boss sees this because this is a very common misconception. This isn't the 90s where your only option for running code was to install it on the user's machine. You have other options. You have to assume that everything you install on a user device is no longer private. The only way to protect source code is to never distribute it in the first place, and only expose your software through web APIs.
Viewing a single comment thread. View all comments