Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add a Haiku-like methods interceptor API.
Note: 1. Methods decorated by nn.nowrap could not be intercepted. 2. Module dataclass fields and dunder methods, including __eq__, __repr__, __init__, __hash__, and __post__init__ could not be intercepted. 3. Module descriptors could not be intercepted. 4. InterceptorContext currently contains the module object, method name, and original method. More fields could be added in the future. PiperOrigin-RevId: 549126112
- Loading branch information