Skip to content

Conversation

@nick8592
Copy link

This MR includes three main updates to improve type compatibility and prevent runtime errors:

  1. Update datasets.py
    Replace deprecated np.int with np.int32 for explicit dtype specification.

  2. Update loss.py
    Fix RuntimeError caused by casting issues: ensure result type Float is properly handled instead of trying to cast to long int.

  3. Update requirements.txt
    Modify dependencies to prevent the TypeError: No loop matching the specified signature and casting was found for ufunc greater error.

nick8592 added 3 commits July 31, 2025 15:54
np.int >>> np.int32
Fix RuntimeError: result type Float can't be cast to the desired output type long int
Prevent `TypeError: No loop matching the specified signature and casting was found for ufunc greater`
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.

1 participant