Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[dnn] Improve error handling in dnn/linear module #704

Merged
merged 1 commit into from
Dec 5, 2024

Conversation

Routhleck
Copy link
Collaborator

This pull request includes several updates to the brainpy library, focusing on dependency management and error handling improvements. The most important changes involve adding a new dependency, refining error handling for missing packages, and updating documentation to reflect these changes.

Closes #702

Dependency Management:

  • Added braintaichi to the list of dependencies in docker/requirements.txt.

Error Handling:

  • Replaced PackageMissingError with raise_braintaichi_not_found() in multiple functions to provide a more specific error message when braintaichi is not found in brainpy/_src/dnn/linear.py. [1] [2] [3] [4] [5]
  • Updated conditional checks to include bti in addition to ti in several functions to ensure proper handling when both dependencies are required in brainpy/_src/dnn/linear.py. [1] [2]

Documentation Updates:

  • Removed references to brainpylib and updated installation instructions to reflect the new dependency requirements in docs/quickstart/installation.rst. [1] [2] [3]

@chaoming0625 chaoming0625 merged commit 2bb2f9e into master Dec 5, 2024
39 checks passed
@chaoming0625 chaoming0625 deleted the braintaichi-not-found branch December 5, 2024 13:31
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.

brainpylib
2 participants