Closed cauliyang closed 2 years ago
Device: x86_64 GNU/Linux ENV: conda env Python: 3.8
Error: NameError: name 'profile' is not defined
Command used:
mprof run --python python script.py
python -m memory_profiler script.py
mprof run script.py
Note:
I also run line_profiler, and it works better. However, for memory_profiler I get this error.
If you need any information please let me know!
Thanks for your time ^^
Fixed
Reason: name of script cannot be profile.py
profile.py
Device: x86_64 GNU/Linux ENV: conda env Python: 3.8
Error: NameError: name 'profile' is not defined
Command used:
mprof run --python python script.py
python -m memory_profiler script.py
mprof run script.py
Note:
I also run line_profiler, and it works better. However, for memory_profiler I get this error.
If you need any information please let me know!
Thanks for your time ^^