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

common: replace loop with algorithm for primitive_hashing.cpp #2102

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

Conversation

Permanence-AI-Coder
Copy link
Contributor

Description

The code changes in this PR were generated automatically by the Permanence AI Coder and reviewed by @eelenberg and @jweese. This PR replaces a loop-based check for equality of hint_mds_ and rhs.hint_mds_ with a call to std::equal. The 2 vectors are guaranteed to be the same size after the condition on line 60. This change removes an unnecessary indexing variable, improves readability, and reduces potential off-by-one errors.

on-behalf-of: @permanence-ai [email protected]

Checklist

General

  • Do all unit and benchdnn tests (make test and make test_benchdnn_*) pass locally for each commit?
  • Have you formatted the code using clang-format?

@Permanence-AI-Coder Permanence-AI-Coder requested a review from a team as a code owner September 19, 2024 17:39
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.

3 participants