Skip to content

Conversation

@RanHomri
Copy link

@RanHomri RanHomri commented Nov 3, 2024

No description provided.

@RanHomri RanHomri requested a review from tomkoren21 November 3, 2024 14:16
# input_0 is constant, input_1 is variable
constant_value = np.asarray(tf.cast(input_0, dtype=input_1.dtype))
variable_input = input_1

Copy link
Collaborator

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

Copy link
Collaborator

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?

Copy link
Collaborator

@tomkoren21 tomkoren21 left a comment

Choose a reason for hiding this comment

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

LGTM

@RanHomri RanHomri merged commit a3ef47c into master Nov 10, 2024
3 checks passed
@RanHomri RanHomri deleted the fix-constant-handling branch November 10, 2024 13:04
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