Files
TinyTorch/modules/tensor/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

107 lines
2.9 KiB
YAML

# TinyTorch Module Metadata
# This file contains structured information about the module for CLI tools and documentation
# Basic Information
name: "tensor"
title: "Tensor - Core Data Structure"
description: "Implement the fundamental data structure that powers all ML systems - N-dimensional arrays with ML-specific operations"
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 tensors as N-dimensional arrays with ML-specific operations"
- "Implement a complete Tensor class with arithmetic operations"
- "Handle shape management, data types, and memory layout"
- "Build the foundation for neural networks and automatic differentiation"
key_concepts:
- "N-dimensional arrays"
- "Shape management"
- "Element-wise operations"
- "Broadcasting"
- "Memory layout"
- "Data types"
# Dependencies
dependencies:
prerequisites: ["setup"]
builds_on: ["setup"]
enables: ["activations", "layers", "networks", "autograd"]
# Educational Metadata
difficulty: "intermediate" # beginner, intermediate, advanced
estimated_time: "4-6 hours"
pedagogical_pattern: "Build → Use → Understand"
# Implementation Details
components:
- name: "Tensor"
type: "class"
description: "Core tensor class with shape, data, and operations"
status: "complete"
- name: "arithmetic_operations"
type: "methods"
description: "Addition, subtraction, multiplication, division"
status: "complete"
- name: "shape_operations"
type: "methods"
description: "Reshape, transpose, squeeze, unsqueeze"
status: "complete"
- name: "reduction_operations"
type: "methods"
description: "Sum, mean, max, min along dimensions"
status: "complete"
# Package Export Information
exports_to: "tinytorch.core.tensor"
export_directive: "core.tensor"
# Testing Information
test_coverage: "comprehensive" # comprehensive, partial, minimal, none
test_count: 25
test_categories:
- "Construction and properties"
- "Arithmetic operations"
- "Shape management"
- "Reduction operations"
- "Error handling"
- "Edge cases"
# File Structure
required_files:
- "tensor_dev.py"
- "tensor_dev.ipynb"
- "tests/test_tensor.py"
- "README.md"
# Systems Focus
systems_concepts:
- "Memory management"
- "Data layout optimization"
- "Numerical stability"
- "Broadcasting semantics"
- "Type safety"
# Real-world Applications
applications:
- "Neural network computations"
- "Scientific computing"
- "Computer vision"
- "Natural language processing"
# Next Steps
next_modules: ["activations", "layers"]
completion_criteria:
- "All tests pass"
- "Can perform basic tensor operations"
- "Understand tensor shapes and broadcasting"
- "Ready for neural network layers"