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

CenterCrop Layer #6875

Merged
merged 33 commits into from
Oct 13, 2022
Merged

Conversation

AdamLang96
Copy link
Contributor

@AdamLang96 AdamLang96 commented Sep 28, 2022


This change is Reviewable

@AdamLang96
Copy link
Contributor Author

@mattsoulanille Please take a look whenever you're available. Thanks!

@AdamLang96
Copy link
Contributor Author

Hi @mattsoulanille,

Thanks again for meeting with us this morning! After reviewing the feedback on our last two layers, I am pretty confident we have some repeated mistakes in this one. @koyykdy and I will review this layer and ping you once we have cleaned those up to try and make things easier on your end, so don't worry about reviewing it for now.

Thanks,

Adam

@mattsoulanille
Copy link
Member

Thanks for letting me know, @AdamLang96. I'll wait for your ping.

@AdamLang96
Copy link
Contributor Author

@mattsoulanille I think this is ready for review whenever you're available. Thank you!

Copy link
Member

@mattsoulanille mattsoulanille left a comment

Choose a reason for hiding this comment

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

The logic looks good. I just have a few style changes. Thanks!

AdamLang96 and others added 14 commits October 4, 2022 13:11
Merge branch 'centercrop' of https://github.com/CodeSmithDSMLProjects/tfjs into centercrop
Merge branch 'centercrop' of https://github.com/CodeSmithDSMLProjects/tfjs into centercrop
Merge branch 'centercrop' of https://github.com/CodeSmithDSMLProjects/tfjs into centercrop
Merge branch 'centercrop' of https://github.com/AdamLang96/tfjs into centercrop
* refactored centercrop

* Update package.json

* Update yarn.lock

* started fixing layer

* finished style changes

* added reviewer recs
* refactored centercrop

* Update package.json

* Update yarn.lock

* started fixing layer

* finished style changes

* added reviewer recs

* added semicolon to pass linter
@AdamLang96
Copy link
Contributor Author

@mattsoulanille I updated the layer to reflect your changes. Let me know what you think. Thanks!

Copy link
Member

@mattsoulanille mattsoulanille left a comment

Choose a reason for hiding this comment

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

LGTM. Thanks!

@mattsoulanille
Copy link
Member

@ahmedsabie Please take a look at this PR. Thanks!


return tidy(() => {
let input: Tensor4D;
let rank3 = false;
Copy link
Contributor

Choose a reason for hiding this comment

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

Can you rename to isRank3

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@ahmedsabie done!

@mattsoulanille
Copy link
Member

This is failing tslint:

$ tslint -p tsconfig_tslint.json
/workspace/tfjs-layers/src/exports_layers.ts:1770:1
ERROR: 1770:1  jsdoc-format  asterisks in jsdoc must be aligned
ERROR: 1771:1  jsdoc-format  asterisks in jsdoc must be aligned
ERROR: 1772:1  jsdoc-format  asterisks in jsdoc must be aligned
ERROR: 1773:1  jsdoc-format  asterisks in jsdoc must be aligned
ERROR: 1774:1  jsdoc-format  asterisks in jsdoc must be aligned
ERROR: 1775:1  jsdoc-format  asterisks in jsdoc must be aligned
ERROR: 1776:1  jsdoc-format  asterisks in jsdoc must be aligned
ERROR: 1777:1  jsdoc-format  asterisks in jsdoc must be aligned
ERROR: 1778:1  jsdoc-format  asterisks in jsdoc must be aligned
ERROR: 1779:1  jsdoc-format  asterisks in jsdoc must be aligned
ERROR: 1780:1  jsdoc-format  asterisks in jsdoc must be aligned
ERROR: 1781:1  jsdoc-format  asterisks in jsdoc must be aligned
ERROR: 1782:1  jsdoc-format  asterisks in jsdoc must be aligned
ERROR: 1783:1  jsdoc-format  asterisks in jsdoc must be aligned
ERROR: 1784:1  jsdoc-format  asterisks in jsdoc must be aligned
ERROR: 1785:1  jsdoc-format  asterisks in jsdoc must be aligned
ERROR: 1786:1  jsdoc-format  asterisks in jsdoc must be aligned
ERROR: 1787:1  jsdoc-format  asterisks in jsdoc must be aligned
ERROR: 1788:1  jsdoc-format  asterisks in jsdoc must be aligned
ERROR: 1789:1  jsdoc-format  asterisks in jsdoc must be aligned
ERROR: 1790:1  jsdoc-format  asterisks in jsdoc must be aligned

@AdamLang96
Copy link
Contributor Author

@mattsoulanille whoops just fixed it

@mattsoulanille
Copy link
Member

Thanks!
@ahmedsabie Please take another look.

@mattsoulanille mattsoulanille merged commit 1006741 into tensorflow:master Oct 13, 2022
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