-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
enhancement: reduced usage of numpy and substituted built-in libraries #8418
Conversation
@@ -23,7 +21,6 @@ def set_all_seeds(seed: int, deterministic_cudnn: bool = False) -> None: | |||
:param deterministic_cudnn: Enable for full reproducibility when using CUDA. Caution: might slow down training. | |||
""" | |||
random.seed(seed) | |||
np.random.seed(seed) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since numpy is no longer being used to generate random elements , we can safely remove this
@@ -5,7 +5,6 @@ | |||
import math | |||
from typing import List | |||
|
|||
import numpy as np |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This particular file was importing numpy but no usage was found
@silvanocerza can you please review the changes |
Pull Request Test Coverage Report for Build 11404601053Warning: This coverage report may be inaccurate.This pull request's base commit is no longer the HEAD commit of its target branch. This means it includes changes from outside the original pull request, including, potentially, unrelated coverage changes.
Details
💛 - Coveralls |
@silvanocerza just a heads up that all tests have passed |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the contribution!
I felt free to remove numpy usage in some other places...
Related Issues
numpy
and use builtinmath
when possible #8408Proposed Changes:
Reduced usage of numpy by substituting math and random libraries
fix:
,feat:
,build:
,chore:
,ci:
,docs:
,style:
,refactor:
,perf:
,test:
.