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

Added AvgPool1D + stateful test #15350

Closed
wants to merge 8 commits into from

Conversation

mobley-trent
Copy link
Contributor

No description provided.

@mobley-trent
Copy link
Contributor Author

Closes #15348

@mobley-trent
Copy link
Contributor Author

@zaeemansari70 do you mind reviewing this PR ? The tests are passing on my end

Comment on lines 1557 to 1559
device=None,
v=None,
dtype=None,
Copy link
Contributor

Choose a reason for hiding this comment

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

why are these arguments needed? the layer has no variables to initialize to to place on devices

Copy link
Contributor Author

Choose a reason for hiding this comment

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

They are needed in the __init__ method of the Module class. I followed the convention used in the rest of the layers

ivy/stateful/layers.py Outdated Show resolved Hide resolved
Copy link
Contributor

@MahmoudAshraf97 MahmoudAshraf97 left a comment

Choose a reason for hiding this comment

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

please review your implementation and remove unnecessary arguments, you can check ivy.ReLU class for example

@mobley-trent
Copy link
Contributor Author

please review your implementation and remove unnecessary arguments, you can check ivy.ReLU class for example

The implementation is consistent with the rest of the layers in the module, even AvgPool2D which is right next to it

@mobley-trent mobley-trent deleted the stateful branch June 7, 2023 13:05
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