-
Notifications
You must be signed in to change notification settings - Fork 10
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
Small improvements to style transfer #46
Small improvements to style transfer #46
Conversation
Remove magic numbers
Make number self-explainable
Remove implicit cast
Make functions concise
NSNumber* numInputs = [module getNumberOfInputs]; | ||
NSLog(@"RnExecutorch: %@", [module getNumberOfInputs]); | ||
for (NSUInteger i = 0; i < [[module getNumberOfInputs] intValue]; i++) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you also get rid of that for loops that only log stuff there? They don't seem necessary, thank you for contributing!:D
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sure, I'm wondering if this PR is still needed as there is a PR with style transfer using OpenCV
Remove unused logging
Remove unused variable
This is a very nice work with great attention to details. However I will close this PR, because those files were supposed to be changed from the start (perhaps shouldn't have been merged in the first place, they were only to ease further development). We can implement suggested changes in the refactored code for style transfer :) |
Description
Small improvements in readability of Style Transfer. Please double check it, as I haven't run the whole style transfer.