This is the code used in the article Pure Python vs NumPy vs TensorFlow Performance Comparison.
The environment can be set up with conda:
conda env create -f conda_env.yml
conda activate comparison
Then, you can run the code with:
python code.py
Code used in the article "Pure Python vs NumPy vs TensorFlow Performance Comparison" on Real Python
Python
This is the code used in the article Pure Python vs NumPy vs TensorFlow Performance Comparison.
The environment can be set up with conda:
conda env create -f conda_env.yml
conda activate comparison
Then, you can run the code with:
python code.py