We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cd93668 commit cb7e955Copy full SHA for cb7e955
keras/src/backend/tensorflow/image.py
@@ -711,8 +711,9 @@ def process_coordinates(coords, size):
711
712
if fill_mode == "constant":
713
all_valid = tf.reduce_all(validities, axis=0)
714
- fill_value_typed = tf.cast(fill_value, weights[0].dtype)
715
- gathered = tf.where(all_valid, gathered, fill_value_typed)
+ dtype = weights[0].dtype
+ fill_value_typed = tf.cast(fill_value, dtype)
716
+ gathered = tf.where(all_valid, gathered, fill_value_typed)
717
718
outputs.append(functools.reduce(operator.mul, weights) * gathered)
719
0 commit comments