mirror of
https://github.com/MLSysBook/TinyTorch.git
synced 2026-05-02 17:17:32 -05:00
Simplify module.yaml and enhance export command with real export targets
- Remove redundant fields from module.yaml files: exports_to, files, components - Keep only essential system metadata: name, title, description, dependencies - Export command now reads actual export targets from dev files (#| default_exp directive) - Status command updated to use dev files as source of truth for export targets - Export command shows detailed source → target mapping for better clarity - Dependencies field retained as it's useful for CLI module ordering and prerequisites - Eliminates duplication between YAML and dev files - dev files are the real truth
This commit is contained in:
@@ -2,25 +2,10 @@
|
||||
# Essential system information for CLI tools and build systems
|
||||
|
||||
name: "activations"
|
||||
title: "Activations"
|
||||
description: "Activation functions (ReLU, Sigmoid, Tanh, etc.)"
|
||||
title: "Activation Functions"
|
||||
description: "Neural network activation functions (ReLU, Sigmoid, Tanh)"
|
||||
|
||||
# Dependencies
|
||||
# Dependencies - Used by CLI for module ordering and prerequisites
|
||||
dependencies:
|
||||
prerequisites: ["setup", "tensor"]
|
||||
enables: ["layers", "networks"]
|
||||
|
||||
# Package Export
|
||||
exports_to: "tinytorch.core.activations"
|
||||
|
||||
# File Structure
|
||||
files:
|
||||
dev_file: "activations_dev.py"
|
||||
test_file: "tests/test_activations.py"
|
||||
readme: "README.md"
|
||||
|
||||
# Components
|
||||
components:
|
||||
- "ReLU"
|
||||
- "Sigmoid"
|
||||
- "Tanh"
|
||||
prerequisites: ["tensor"]
|
||||
enables: ["layers", "networks"]
|
||||
Reference in New Issue
Block a user