-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
fix #2566
fix #2566
Conversation
Signed-off-by: nithinraok <[email protected]>
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.
Other than doc string for COSclustering(), it looks good to me.
Signed-off-by: nithinraok <[email protected]>
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.
I approve the changes made.
Signed-off-by: nithinraok <[email protected]>
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.
LGTM, minor style fixes
laplacian_torch = torch.from_numpy(Laplacian).float().to(device) | ||
if TORCH_EIGN: | ||
if cuda: | ||
if device == None: |
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.
If device is None instead of == None
if cuda: | ||
if device == None: | ||
device = torch.cuda.current_device() | ||
Laplacian = torch.from_numpy(Laplacian).float().to(device) |
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.
Why capital Laplacian for a variable ? Lower case please
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.
LGTM, merge when ready
This pull request fixes 1 alert when merging c005c67 into 7f7a499 - view on LGTM.com fixed alerts:
|
@@ -120,7 +130,7 @@ def getCosAffinityMatrix(emb): | |||
|
|||
def getLaplacian(X): | |||
""" | |||
Calculates a Laplacian matrix from an affinity matrix X. | |||
Calculates a laplacian matrix from an affinity matrix X. |
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 better to be Laplacian while other variables are "laplacian"
* fix Signed-off-by: nithinraok <[email protected]> * doc add Signed-off-by: nithinraok <[email protected]> * style fix Signed-off-by: nithinraok <[email protected]>
* update jenkinsfile Signed-off-by: ericharper <[email protected]> * update BRANCH Signed-off-by: ericharper <[email protected]> * Fix onnx for ASR notebook (#2542) * Update onnx version Signed-off-by: smajumdar <[email protected]> * Fix onnx Signed-off-by: smajumdar <[email protected]> * Fix onnx Signed-off-by: smajumdar <[email protected]> * Fix typos and MeCab import (#2541) Signed-off-by: MaximumEntropy <[email protected]> * Fix branch for ASR notebooks (#2549) Signed-off-by: smajumdar <[email protected]> * rmtok (#2559) Signed-off-by: Abhinav Khattar <[email protected]> * Add xxhash dependency (#2564) Signed-off-by: MaximumEntropy <[email protected]> * fix (#2566) * fix Signed-off-by: nithinraok <[email protected]> * doc add Signed-off-by: nithinraok <[email protected]> * style fix Signed-off-by: nithinraok <[email protected]> * Fix moses path issue (#2573) Signed-off-by: MaximumEntropy <[email protected]> * More moses data path fixes (#2575) Signed-off-by: MaximumEntropy <[email protected]> * Path fixes (#2580) Signed-off-by: MaximumEntropy <[email protected]> * Upper bound transformers for 1.2 (#2584) * upper bound transformers and name change jarvis to riva Signed-off-by: ericharper <[email protected]> * upper bound transformers and name change jarvis to riva Signed-off-by: ericharper <[email protected]> * update jenkinsfile Signed-off-by: ericharper <[email protected]> * update notebooks branch Signed-off-by: ericharper <[email protected]> * update notebooks branch Signed-off-by: ericharper <[email protected]> * update notebooks branch Signed-off-by: ericharper <[email protected]> Co-authored-by: Somshubra Majumdar <[email protected]> Co-authored-by: Sandeep Subramanian <[email protected]> Co-authored-by: Abhinav Khattar <[email protected]> Co-authored-by: Nithin Rao <[email protected]>
* update jenkinsfile Signed-off-by: ericharper <[email protected]> * update BRANCH Signed-off-by: ericharper <[email protected]> * Fix onnx for ASR notebook (NVIDIA#2542) * Update onnx version Signed-off-by: smajumdar <[email protected]> * Fix onnx Signed-off-by: smajumdar <[email protected]> * Fix onnx Signed-off-by: smajumdar <[email protected]> * Fix typos and MeCab import (NVIDIA#2541) Signed-off-by: MaximumEntropy <[email protected]> * Fix branch for ASR notebooks (NVIDIA#2549) Signed-off-by: smajumdar <[email protected]> * rmtok (NVIDIA#2559) Signed-off-by: Abhinav Khattar <[email protected]> * Add xxhash dependency (NVIDIA#2564) Signed-off-by: MaximumEntropy <[email protected]> * fix (NVIDIA#2566) * fix Signed-off-by: nithinraok <[email protected]> * doc add Signed-off-by: nithinraok <[email protected]> * style fix Signed-off-by: nithinraok <[email protected]> * Fix moses path issue (NVIDIA#2573) Signed-off-by: MaximumEntropy <[email protected]> * More moses data path fixes (NVIDIA#2575) Signed-off-by: MaximumEntropy <[email protected]> * Path fixes (NVIDIA#2580) Signed-off-by: MaximumEntropy <[email protected]> * Upper bound transformers for 1.2 (NVIDIA#2584) * upper bound transformers and name change jarvis to riva Signed-off-by: ericharper <[email protected]> * upper bound transformers and name change jarvis to riva Signed-off-by: ericharper <[email protected]> * update jenkinsfile Signed-off-by: ericharper <[email protected]> * update notebooks branch Signed-off-by: ericharper <[email protected]> * update notebooks branch Signed-off-by: ericharper <[email protected]> * update notebooks branch Signed-off-by: ericharper <[email protected]> Co-authored-by: Somshubra Majumdar <[email protected]> Co-authored-by: Sandeep Subramanian <[email protected]> Co-authored-by: Abhinav Khattar <[email protected]> Co-authored-by: Nithin Rao <[email protected]> Signed-off-by: Jason <[email protected]>
* update jenkinsfile Signed-off-by: ericharper <[email protected]> * update BRANCH Signed-off-by: ericharper <[email protected]> * Fix onnx for ASR notebook (NVIDIA#2542) * Update onnx version Signed-off-by: smajumdar <[email protected]> * Fix onnx Signed-off-by: smajumdar <[email protected]> * Fix onnx Signed-off-by: smajumdar <[email protected]> * Fix typos and MeCab import (NVIDIA#2541) Signed-off-by: MaximumEntropy <[email protected]> * Fix branch for ASR notebooks (NVIDIA#2549) Signed-off-by: smajumdar <[email protected]> * rmtok (NVIDIA#2559) Signed-off-by: Abhinav Khattar <[email protected]> * Add xxhash dependency (NVIDIA#2564) Signed-off-by: MaximumEntropy <[email protected]> * fix (NVIDIA#2566) * fix Signed-off-by: nithinraok <[email protected]> * doc add Signed-off-by: nithinraok <[email protected]> * style fix Signed-off-by: nithinraok <[email protected]> * Fix moses path issue (NVIDIA#2573) Signed-off-by: MaximumEntropy <[email protected]> * More moses data path fixes (NVIDIA#2575) Signed-off-by: MaximumEntropy <[email protected]> * Path fixes (NVIDIA#2580) Signed-off-by: MaximumEntropy <[email protected]> * Upper bound transformers for 1.2 (NVIDIA#2584) * upper bound transformers and name change jarvis to riva Signed-off-by: ericharper <[email protected]> * upper bound transformers and name change jarvis to riva Signed-off-by: ericharper <[email protected]> * update jenkinsfile Signed-off-by: ericharper <[email protected]> * update notebooks branch Signed-off-by: ericharper <[email protected]> * update notebooks branch Signed-off-by: ericharper <[email protected]> * update notebooks branch Signed-off-by: ericharper <[email protected]> Co-authored-by: Somshubra Majumdar <[email protected]> Co-authored-by: Sandeep Subramanian <[email protected]> Co-authored-by: Abhinav Khattar <[email protected]> Co-authored-by: Nithin Rao <[email protected]> Signed-off-by: Paarth Neekhara <[email protected]>
* update jenkinsfile Signed-off-by: ericharper <[email protected]> * update BRANCH Signed-off-by: ericharper <[email protected]> * Fix onnx for ASR notebook (NVIDIA#2542) * Update onnx version Signed-off-by: smajumdar <[email protected]> * Fix onnx Signed-off-by: smajumdar <[email protected]> * Fix onnx Signed-off-by: smajumdar <[email protected]> * Fix typos and MeCab import (NVIDIA#2541) Signed-off-by: MaximumEntropy <[email protected]> * Fix branch for ASR notebooks (NVIDIA#2549) Signed-off-by: smajumdar <[email protected]> * rmtok (NVIDIA#2559) Signed-off-by: Abhinav Khattar <[email protected]> * Add xxhash dependency (NVIDIA#2564) Signed-off-by: MaximumEntropy <[email protected]> * fix (NVIDIA#2566) * fix Signed-off-by: nithinraok <[email protected]> * doc add Signed-off-by: nithinraok <[email protected]> * style fix Signed-off-by: nithinraok <[email protected]> * Fix moses path issue (NVIDIA#2573) Signed-off-by: MaximumEntropy <[email protected]> * More moses data path fixes (NVIDIA#2575) Signed-off-by: MaximumEntropy <[email protected]> * Path fixes (NVIDIA#2580) Signed-off-by: MaximumEntropy <[email protected]> * Upper bound transformers for 1.2 (NVIDIA#2584) * upper bound transformers and name change jarvis to riva Signed-off-by: ericharper <[email protected]> * upper bound transformers and name change jarvis to riva Signed-off-by: ericharper <[email protected]> * update jenkinsfile Signed-off-by: ericharper <[email protected]> * update notebooks branch Signed-off-by: ericharper <[email protected]> * update notebooks branch Signed-off-by: ericharper <[email protected]> * update notebooks branch Signed-off-by: ericharper <[email protected]> Co-authored-by: Somshubra Majumdar <[email protected]> Co-authored-by: Sandeep Subramanian <[email protected]> Co-authored-by: Abhinav Khattar <[email protected]> Co-authored-by: Nithin Rao <[email protected]>
Signed-off-by: nithinraok [email protected]