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(backends): Added a primary implementation for flatten in tensorflow backend #28488

Merged
merged 1 commit into from
Mar 6, 2024

Conversation

hmahmood24
Copy link
Contributor

@hmahmood24 hmahmood24 commented Mar 6, 2024

PR Description

Adds a primary implementation for flatten in the tensorflow backend which is compatible with tf.function. The implementation is taken from transformers.

Related Issue

Closes #

Checklist

  • Did you add a function?
  • Did you add the tests?
  • Did you run your tests and are your tests passing?
  • Did pre-commit not fail on any check?
  • Did you follow the steps we provided?

Socials

Copy link
Contributor

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

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

PR Compliance Checks

Thank you for your Pull Request! We have run several checks on this pull request in order to make sure it's suitable for merging into this project. The results are listed in the following section.

Issue Reference

In order to be considered for merging, the pull request description must refer to a specific issue number. This is described in our contributing guide and our PR template.
This check is looking for a phrase similar to: "Fixes #XYZ" or "Resolves #XYZ" where XYZ is the issue number that this PR is meant to address.

Protected Branch

In order to be considered for merging, the pull request changes must not be implemented on the "main" branch. This is described in our Contributing Guide. We are closing this pull request and we would suggest that you implement your changes as described in our Contributing Guide and open a new pull request.

@hmahmood24 hmahmood24 changed the title feat(backends): Added a primary implementation for flatten in tensorf… feat(backends): Added a primary implementation for flatten in tensorflow backend Mar 6, 2024
Copy link
Contributor

@vedpatwardhan vedpatwardhan left a comment

Choose a reason for hiding this comment

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

I haven't run the tests for this function locally (and for some reason the test isn't being run in the CI for this one), but I assume you've already tested the function, feel free to merge. Thanks @hmahmood24 😄

@hmahmood24
Copy link
Contributor Author

I haven't run the tests for this function locally (and for some reason the test isn't being run in the CI for this one), but I assume you've already tested the function, feel free to merge. Thanks @hmahmood24 😄

Yup the tests are passing locally. Thanks I'll merge now 😄

@hmahmood24 hmahmood24 merged commit 514fedc into ivy-llc:main Mar 6, 2024
281 of 289 checks 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.

3 participants