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

bad code practice #2

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

bad code practice #2

wants to merge 1 commit into from

Conversation

wenlei03
Copy link
Contributor

No description provided.

Signed-off-by: Lei Wen <[email protected]>
@wenlei03
Copy link
Contributor Author

Preparing review...

1 similar comment
@wenlei03
Copy link
Contributor Author

Preparing review...

@wenlei03
Copy link
Contributor Author

PR Analysis

  • 🎯 Main theme: Bad code practice
  • 📝 PR summary: The PR introduces bad code practices, such as unused functions and variables, and lack of documentation.
  • 📌 Type of PR: Bug fix
  • 🧪 Relevant tests added: No
  • ⏱️ Estimated effort to review [1-5]: 3, because the PR is small and the code is simple.
  • 🔒 Security concerns: No security concerns found

PR Feedback

  • General PR suggestions: The PR should include more documentation, such as docstrings and comments, to explain the purpose and usage of the code.
    The PR should also include more tests to ensure that the code is working correctly and to prevent future regressions.

@@ -35,6 +35,8 @@ def has_cutlass():
"""Returns true if the CUTLASS custom codegen is available"""
return tvm.get_global_func("relay.ext.cutlass.create_c_source_module", True) is not None

def ddd():
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove the unused function 'ddd' [important]

@@ -35,6 +35,8 @@ def has_cutlass():
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add docstrings and comments to explain the purpose and usage of the code [medium]

@@ -35,6 +35,8 @@ def has_cutlass():
"""Returns true if the CUTLASS custom codegen is available"""
return tvm.get_global_func("relay.ext.cutlass.create_c_source_module", True) is not None

def ddd():
print("testing")

def _get_cutlass_path():
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add more tests to ensure that the code is working correctly and to prevent future regressions [medium]

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