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: Update general_functions.py by adding random_uniform_initializer #26970

Closed
wants to merge 6 commits into from

Conversation

tagrib
Copy link

@tagrib tagrib commented Oct 12, 2023

Close #26962

PR Description

Related Issue

Closes #26962

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

@ivy-leaves ivy-leaves added the TensorFlow Frontend Developing the TensorFlow Frontend, checklist triggered by commenting add_frontend_checklist label Oct 12, 2023
@github-actions
Copy link
Contributor

Thank you for this PR, here is the CI results:


This pull request does not result in any additional test failures. Congratulations!

@tagrib
Copy link
Author

tagrib commented Oct 13, 2023

Can you review this PR please.
@Dsantra92

Comment on lines 350 to 358
):
try:
minval = float(minval)
except (ValueError, TypeError):
minval = 0.0
try:
maxval = float(maxval)
except (ValueError, TypeError):
maxval = 1.0
Copy link
Contributor

Choose a reason for hiding this comment

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

No need to have the try except here. It will be handled in the backend. Also, you needs to add tests for the given function.

@niixxaaa
Copy link
Contributor

Hey, can you solve the merge conflicts?
Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
TensorFlow Frontend Developing the TensorFlow Frontend, checklist triggered by commenting add_frontend_checklist
Projects
None yet
Development

Successfully merging this pull request may close these issues.

random_uniform_initializer
6 participants