A comprehensive TensorFlow bootcamp project with updated setup instructions and migration guides for modern TensorFlow versions.
This repository contains materials and setup instructions for a TensorFlow deep learning bootcamp. Originally designed for TensorFlow 1.3, it now includes comprehensive migration guides and setup instructions for TensorFlow 2.x.
- Python 3.8-3.11 (TensorFlow 2.15+ supports Python 3.9-3.11)
- pip 19.0 or later
- 64-bit system
- At least 4GB RAM (8GB+ recommended)
Run the setup script to create a virtual environment with all dependencies:
chmod +x setup_venv.sh
./setup_venv.shTo activate the environment:
source tfdeeplearning/bin/activate# Create virtual environment
python -m venv tfdeeplearning
# Activate virtual environment
source tfdeeplearning/bin/activate # Linux/Mac
# tfdeeplearning\Scripts\activate # Windows
# Upgrade pip
pip install --upgrade pip
# Install TensorFlow and dependencies
pip install tensorflow numpy matplotlib jupyter pandas scikit-learn# Create conda environment
conda create -n tfdeeplearning python=3.10
# Activate environment
conda activate tfdeeplearning
# Install packages
conda install tensorflow numpy matplotlib jupyter pandas scikit-learnRun the installation test:
python src/installation-testing.pyExpected output should include:
- TensorFlow version information
- Basic tensor operations
- Device information (CPU/GPU)
- Simple neural network test
- Success message
- TensorFlow Setup Guide - Comprehensive installation instructions, troubleshooting, and optimization tips
- Migration Guide - Complete guide for migrating from TensorFlow 1.x to 2.x
- Installation Logs - Detailed conda environment creation logs
- Testing Guide - Installation verification procedures
If you're working with older TensorFlow 1.x code, use our migration guide:
- Eager execution by default (no more Sessions)
- Simplified APIs with better Keras integration
- tf.function for performance optimization
- Cleaner variable and model management
# TensorFlow 1.x (deprecated)
import tensorflow as tf
sess = tf.Session()
result = sess.run(tensor)
# TensorFlow 2.x (current)
import tensorflow as tf
result = tensor.numpy()For complete migration instructions, see docs/tensorflow_migration_guide.md.
GPU Warnings: CUDA/GPU warnings are normal for CPU-only installations and can be ignored.
Import Errors: Ensure your virtual environment is activated and TensorFlow is installed correctly.
Memory Issues: Reduce batch sizes or enable GPU memory growth:
gpus = tf.config.experimental.list_physical_devices('GPU')
if gpus:
tf.config.experimental.set_memory_growth(gpus[0], True)For detailed troubleshooting, see the setup guide.
# Install Jupyter (if not already installed)
pip install jupyter
# Start Jupyter
jupyter notebook# Disable oneDNN optimizations (if causing issues)
export TF_ENABLE_ONEDNN_OPTS=0
# Set logging level
export TF_CPP_MIN_LOG_LEVEL=2 # Suppress INFO/WARNING messages.
├── README.md # This file
├── docs/ # Documentation
│ ├── tensorflow_setup_guide.md # Detailed setup instructions
│ ├── tensorflow_migration_guide.md # TF 1.x to 2.x migration
│ ├── installation.txt # Installation logs
│ └── installation-testing.txt # Testing procedures
├── src/ # Source code
│ └── installation-testing.py # Installation verification script
├── setup_venv.sh # Automated environment setup
└── run-python-venv.sh # Environment activation helper
- Fork the repository
- Create a feature branch
- Make your changes
- Test with the verification script
- Submit a pull request
This project is part of a TensorFlow bootcamp educational material.
If you encounter issues:
- Check the troubleshooting section in the setup guide
- Verify your installation with
python src/installation-testing.py - Review the migration guide if working with older code
- Open an issue with detailed error messages and system information