Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This pull request involves significant refactoring and cleanup of the
brainpy
library, particularly focusing on the removal of theop_register
module and its associated components. The most important changes include removing theXLACustomOp
class and its dependencies, cleaning up import statements, and reorganizing the codebase to eliminate unused methods and classes.Removal of
op_register
module:brainpy/_src/math/op_register/__init__.py
: Removed all imports and definitions related toCustomOpByNumba
,XLACustomOp
, and utility functions.brainpy/_src/math/op_register/ad_support.py
: Deleted the entire file, including thedefjvp
function and its dependencies.brainpy/_src/math/op_register/base.py
: Removed theXLACustomOp
class and all associated methods and imports.brainpy/_src/math/op_register/cupy_based.py
: Deleted the entire file, including functions for registering CuPy-based XLA and MLIR GPU translation rules.Import statement cleanup:
brainpy/_src/math/__init__.py
: Removed import ofop_register
.brainpy/_src/math/jitconn/matvec.py
: Reorganized import statements, removing references toop_register
and adjusting the order of imports.