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

Optimize Clamp node #2785

Merged
merged 1 commit into from Apr 11, 2024
Merged

Conversation

RunDevelopment
Copy link
Member

Since the minimum and maximum and numbers 0-1, we know that the output image is always a normalized image. So the ImageOutput doesn't need to normalize again.

While this is a pretty minor optimization, since the node just does an np.clip, the node is now technically 2x faster.

@joeyballentine joeyballentine merged commit 3fa2d28 into chaiNNer-org:main Apr 11, 2024
14 checks passed
@RunDevelopment RunDevelopment deleted the optimize-clamp branch April 11, 2024 19:17
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.

None yet

2 participants