Files
TinyTorch/.envrc
Vijay Janapa Reddi 9361cbf987 Add TinyTorch examples gallery and fix module integration issues
- Create professional examples directory showcasing TinyTorch as real ML framework
- Add examples: XOR, MNIST, CIFAR-10, text generation, autograd demo, optimizer comparison
- Fix import paths in exported modules (training.py, dense.py)
- Update training module with autograd integration for loss functions
- Add progressive integration tests for all 16 modules
- Document framework capabilities and usage patterns

This commit establishes the examples gallery that demonstrates TinyTorch
works like PyTorch/TensorFlow, validating the complete framework.
2025-09-21 10:00:11 -04:00

32 lines
966 B
Bash

# Python Virtual Environment Auto-Activation Template
# Copy this file as .envrc to any Python project directory
# Then run: direnv allow
# Check if .venv exists, create if it doesn't
if [[ ! -d ".venv" ]]; then
echo "🔧 Creating Python virtual environment..."
python3 -m venv .venv
echo "📦 Installing basic dependencies..."
source .venv/bin/activate
pip install --upgrade pip
# Uncomment the next line if you have a requirements.txt
# pip install -r requirements.txt
fi
# Activate the virtual environment
source .venv/bin/activate
# Set common Python environment variables
export PYTHONPATH="${PWD}:${PYTHONPATH}"
export PROJECT_ROOT="${PWD}"
# Prevent Python from writing pyc files
export PYTHONDONTWRITEBYTECODE=1
# Enable Python development mode (more detailed error messages)
export PYTHONDEVMODE=1
echo "✅ TinyTorch environment activated"
echo "🐍 Python: $(python --version)"
echo "📍 Virtual env: ${VIRTUAL_ENV}"