Skip to content

Conversation

@maltanar
Copy link
Collaborator

Addresses the comments for #216 - see main description there.

maltanar and others added 30 commits September 25, 2025 11:31
grabs CustomOp instance with the right opset version from protobuf
imported opsets
Replace manual dict registration with automatic class discovery and version resolution.
CustomOps now declare op_version attribute and are auto-registered via module imports.

- Add op_version attribute to all CustomOp base and subclasses
- Implement nested registry structure (domain->op_type->version)
- Support "since version" semantics for automatic version resolution
- Replace is_finn_op() with is_custom_op() from registry
- Add registry API (add_op_to_domain, get_supported_versions, is_custom_op)
- Simplify domain __init__.py files to use __all__ exports
- Use lazy loading via __all__ for performance
…e inference

CustomOp version is now determined solely by _vN class name suffix:
- No suffix defaults to version 1
- _vN suffix indicates version N
- Removes redundant op_version class attribute across all CustomOp implementations
- Updates registry to extract version from class names only
- Adds backward compatibility for legacy custom_op dict pattern
- Simplifies version discovery logic with custom_op dict fallback
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants