mirror of
https://github.com/MLSysBook/TinyTorch.git
synced 2026-04-27 09:54:25 -05:00
- Remove unnecessary module_paths.txt file for cleaner architecture - Update export command to discover modules dynamically from modules/source/ - Simplify nbdev command to support --all and module-specific exports - Use single source of truth: nbdev settings.ini for module paths - Clean up import structure in setup module for proper nbdev export - Maintain clean separation between module discovery and export logic This implements a proper software engineering approach with: - Single source of truth (settings.ini) - Dynamic discovery (no hardcoded paths) - Clean CLI interface (tito package nbdev --export [--all|module]) - Robust error handling with helpful feedback
26 lines
544 B
YAML
26 lines
544 B
YAML
# TinyTorch Module Metadata
|
|
# Essential system information for CLI tools and build systems
|
|
|
|
name: "layers"
|
|
title: "Layers"
|
|
description: "Neural network layers (Linear, activation layers)"
|
|
|
|
# Dependencies
|
|
dependencies:
|
|
prerequisites: ["setup", "tensor", "activations"]
|
|
enables: ["networks", "training"]
|
|
|
|
# Package Export
|
|
exports_to: "tinytorch.core.layers"
|
|
|
|
# File Structure
|
|
files:
|
|
dev_file: "layers_dev.py"
|
|
test_file: "tests/test_layers.py"
|
|
readme: "README.md"
|
|
|
|
# Components
|
|
components:
|
|
- "Linear"
|
|
- "Activation"
|
|
- "Sequential" |