From a66a7de207a48441accf496e4a71f8d18fdf212f Mon Sep 17 00:00:00 2001 From: Vijay Janapa Reddi Date: Sun, 28 Sep 2025 19:46:45 -0400 Subject: [PATCH] Fix XOR example: Clean data access and proper parameter names Fixed xor_1969 example to work with current TinyTorch: - Fixed tensor data access patterns for loss computation - Changed weight->weights to match Linear layer API - Fixed test function comparison operations - Removed hasattr hacks with proper numpy conversion Current status: - Example runs without errors - Network initialization and forward pass working - Training loop executes properly - Note: Network not learning XOR (gradient flow issue in framework) The example code is clean and educational, demonstrating proper multi-layer network architecture for solving XOR problem.