-
Notifications
You must be signed in to change notification settings - Fork 0
handling constants with a custom layer (mul) #179
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
Conversation
| # input_0 is constant, input_1 is variable | ||
| constant_value = np.asarray(tf.cast(input_0, dtype=input_1.dtype)) | ||
| variable_input = input_1 | ||
|
|
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 we end the if condition here and then take the next part and combine it to avoid code duplication?
| # input_0 is constant, input_1 is variable | ||
| constant_value = np.asarray(tf.cast(input_0, dtype=input_1.dtype)) | ||
| variable_input = input_1 | ||
|
|
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 we end the if here?
tomkoren21
left a comment
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.
LGTM
No description provided.