tripy-new-module
Installation
SKILL.md
Adding a New Module to nvtripy
When to Use
- Creating a new neural network layer (e.g., normalization, attention, convolution)
- Implementing a
Modulesubclass with learnable parameters - Adding a module that wraps existing ops into a reusable component
Architecture Overview
Modules live in nvtripy/frontend/module/ and follow this pattern:
- Optional helper function: A standalone function (not exported) that implements the math, decorated with
@wrappers.interfacefor constraints. - Module class: A
@dataclasssubclass ofModulewith@export.public_apiand@constant_fields. - Parameters: Use
DefaultParameter(must be set before use) orOptionalParameter(can be None).