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

Feat: erf operator #491

Merged
merged 9 commits into from
Dec 10, 2023
Merged

Feat: erf operator #491

merged 9 commits into from
Dec 10, 2023

Conversation

HappyTomatoo
Copy link
Contributor

@HappyTomatoo HappyTomatoo commented Dec 5, 2023

Pull Request type

Please check the type of change your PR introduces:

  • Bugfix
  • Feature
  • Code style update (formatting, renaming)
  • Refactoring (no functional changes, no API changes)
  • Build-related changes
  • Documentation content changes
  • Other (please describe):

What is the current behavior?

Issue Number: #349

What is the new behavior?

  • added Erf operator compatible with ONNX Erf.

Does this introduce a breaking change?

  • Yes
  • No

Other information

@HappyTomatoo
Copy link
Contributor Author

@raphaelDkhn I modified the Erf implementation to be a conditional statement function

Copy link
Collaborator

@raphaelDkhn raphaelDkhn left a comment

Choose a reason for hiding this comment

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

LGTM!

}
}

fn get_lookup_table_values(key: felt252) -> u32{
Copy link
Collaborator

Choose a reason for hiding this comment

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

Instead of using dictionary here, that has a worse-case O(n) complexity for writing and reading. I would prefer implementing a Conditional Statements function, like here. Wdyt?

Copy link
Collaborator

Choose a reason for hiding this comment

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

@raphaelDkhn raphaelDkhn merged commit 8443aae into gizatechxyz:develop Dec 10, 2023
1 check passed
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.

2 participants