Files
TinyTorch/modules/layers/module.yaml
Vijay Janapa Reddi b92642a96e feat: Add comprehensive module metadata system
- Add module.yaml files for setup, tensor, activations, layers, and autograd modules
- Enhanced tito status command with --metadata flag for rich information display
- Created metadata schema with learning objectives, dependencies, components, and more
- Added metadata generation script (bin/generate_module_metadata.py)
- Comprehensive documentation in docs/development/module-metadata-system.md
- Status command now shows module status, difficulty, time estimates, and detailed metadata
- Supports dependency tracking, component-level status, and educational information
- Enables rich CLI experience with structured module information
2025-07-11 22:33:24 -04:00

97 lines
2.7 KiB
YAML

# TinyTorch Module Metadata
# This file contains structured information about the module for CLI tools and documentation
# Basic Information
name: "layers"
title: "Layers - Neural Network Building Blocks"
description: "Build the fundamental transformations that compose into neural networks - Dense layers and activation functions"
version: "1.0.0"
author: "TinyTorch Team"
last_updated: "2024-12-19"
# Module Status
status: "complete" # complete, in_progress, not_started, deprecated
implementation_status: "stable" # stable, beta, alpha, experimental
# Learning Information
learning_objectives:
- "Understand layers as functions that transform tensors: y = f(x)"
- "Implement Dense layers with linear transformations: y = Wx + b"
- "Add activation functions for nonlinearity (ReLU, Sigmoid, Tanh)"
- "See how neural networks are just function composition"
- "Build intuition for neural network architecture before diving into training"
key_concepts:
- "Linear transformations"
- "Weight matrices and biases"
- "Function composition"
- "Layer abstraction"
- "Neural network building blocks"
# Dependencies
dependencies:
prerequisites: ["setup", "tensor", "activations"]
builds_on: ["tensor", "activations"]
enables: ["networks", "training"]
# Educational Metadata
difficulty: "intermediate" # beginner, intermediate, advanced
estimated_time: "3-4 hours"
pedagogical_pattern: "Build → Use → Understand"
# Implementation Details
components:
- name: "Dense"
type: "class"
description: "Linear transformation layer: y = Wx + b"
status: "complete"
- name: "Layer"
type: "base_class"
description: "Abstract base class for all layers"
status: "complete"
# Package Export Information
exports_to: "tinytorch.core.layers"
export_directive: "core.layers"
# Testing Information
test_coverage: "comprehensive" # comprehensive, partial, minimal, none
test_count: 15
test_categories:
- "Dense layer construction"
- "Forward pass computation"
- "Shape transformations"
- "Weight initialization"
- "Bias handling"
- "Composition with activations"
# File Structure
required_files:
- "layers_dev.py"
- "layers_dev.ipynb"
- "tests/test_layers.py"
- "README.md"
# Systems Focus
systems_concepts:
- "Modular design"
- "Object-oriented programming"
- "Function composition"
- "Memory management"
- "Numerical stability"
# Real-world Applications
applications:
- "Multi-layer perceptrons"
- "Deep neural networks"
- "Feature extraction"
- "Representation learning"
# Next Steps
next_modules: ["networks", "training"]
completion_criteria:
- "All tests pass"
- "Can build 2-layer neural network"
- "Understand layer composition"
- "Ready for network architectures"