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

Fix output type for LinearLayer #70

Merged
merged 1 commit into from
Sep 24, 2023
Merged

Fix output type for LinearLayer #70

merged 1 commit into from
Sep 24, 2023

Conversation

cortner
Copy link
Member

@cortner cortner commented Sep 24, 2023

LinearLayer previously used only the input vector to determine the output type, but it should use both the input vector and the type of the weight vector.

@cortner cortner mentioned this pull request Sep 24, 2023
@cortner
Copy link
Member Author

cortner commented Sep 24, 2023

This closes #69

Copy link
Collaborator

@CheukHinHoJerry CheukHinHoJerry left a comment

Choose a reason for hiding this comment

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

Didn’t realise this is a problem before - thank you for fixing this.

@cortner
Copy link
Member Author

cortner commented Sep 24, 2023

as a general rule, look at the combination of all types involved and use that to compute the output type. That's what promote_type is for.

@cortner cortner merged commit 71f742b into main Sep 24, 2023
3 of 4 checks passed
@cortner cortner deleted the revdifffix branch September 24, 2023 04:16
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