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

Add the general convolution operation to extensions #954

Merged
merged 8 commits into from
Aug 28, 2020

Conversation

@google-cla google-cla bot added the cla: yes label Aug 18, 2020
@DarrenZhang01
Copy link
Author

tests coming soon.

@akshaym
Copy link
Contributor

akshaym commented Aug 21, 2020

Hey @DarrenZhang01, Is this ready to review?

@DarrenZhang01
Copy link
Author

Hey @DarrenZhang01, Is this ready to review?

Hi Akshay @akshaym ! Actually not yet, there is a bug I need to deal with which I will mention in today's coming meeting.

@akshaym
Copy link
Contributor

akshaym commented Aug 27, 2020

Hey @DarrenZhang01, let me know if I can take a look at this. If there are bugs lets just document them for now and add the code anyway? WDYT?

@DarrenZhang01
Copy link
Author

Hey @DarrenZhang01, let me know if I can take a look at this. If there are bugs lets just document them for now and add the code anyway? WDYT?

Thanks very much for the support, Akshay! It is ready for being reviewed.

Copy link
Contributor

@akshaym akshaym left a comment

Choose a reason for hiding this comment

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

You had mentioned a bug - is that still around? Or is that fixed?

trax/tf_numpy/extensions/extensions.py Outdated Show resolved Hide resolved
trax/tf_numpy/extensions/extensions.py Show resolved Hide resolved
trax/tf_numpy/extensions/extensions.py Outdated Show resolved Hide resolved
trax/tf_numpy/extensions/extensions.py Outdated Show resolved Hide resolved
trax/tf_numpy/extensions/extensions.py Outdated Show resolved Hide resolved
trax/tf_numpy/extensions/extensions_test.py Outdated Show resolved Hide resolved
trax/tf_numpy/extensions/extensions_test.py Outdated Show resolved Hide resolved
trax/tf_numpy/extensions/extensions.py Outdated Show resolved Hide resolved
trax/tf_numpy/extensions/extensions.py Outdated Show resolved Hide resolved
trax/tf_numpy/extensions/extensions.py Outdated Show resolved Hide resolved
@DarrenZhang01
Copy link
Author

DarrenZhang01 commented Aug 27, 2020

You had mentioned a bug - is that still around? Or is that fixed?

So the original bug is that the transpose convolution was not supported due to the lack of output shape as I mentioned in our last Friday's meeting. Now I added an output shape evaluation helper.

Besides, I used the test cases from JAX general convolution. Those cases are really broad and TF general conv currently do not cover them all, so I skipped some test cases and added a TODO to expand the test cases later on.

The shape evaluation function does not seem so correct, so I remove it and use the output shape of JAX convolution directly as the input shape for TF convolution in the test cases.

@DarrenZhang01
Copy link
Author

Thanks for the review, Akshay!

@DarrenZhang01
Copy link
Author

Thanks for the review, Akshay!

Now it is ready for review again. @akshaym

Copy link
Contributor

@akshaym akshaym left a comment

Choose a reason for hiding this comment

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

Thanks for the changes @DarrenZhang01!

Just some small remaining nits!

trax/tf_numpy/extensions/extensions.py Outdated Show resolved Hide resolved
trax/tf_numpy/extensions/extensions.py Show resolved Hide resolved
trax/tf_numpy/extensions/extensions.py Show resolved Hide resolved
trax/tf_numpy/extensions/extensions.py Outdated Show resolved Hide resolved
trax/tf_numpy/extensions/extensions.py Show resolved Hide resolved
trax/tf_numpy/extensions/extensions_test.py Outdated Show resolved Hide resolved
trax/tf_numpy/extensions/extensions_test.py Outdated Show resolved Hide resolved
trax/tf_numpy/extensions/extensions.py Outdated Show resolved Hide resolved
@DarrenZhang01
Copy link
Author

DarrenZhang01 commented Aug 28, 2020

Thanks a lot, Akshay! I revised the places that you mentioned.

@wangpengmit wangpengmit added the ready to pull Added when the PR is ready to be merged. label Aug 28, 2020
@trax-robot trax-robot merged commit 513da83 into google:master Aug 28, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla: yes ready to pull Added when the PR is ready to be merged.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants