Skip to content

Commit

Permalink
[FIX] Numeric type error for tf.zeros
Browse files Browse the repository at this point in the history
  • Loading branch information
wbenbihi committed Aug 20, 2022
1 parent 68ab58c commit 56d9ae9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hourglass_tensorflow/datasets/transformation.py
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ def tf_train_map_heatmaps(
joint[:2], stddev_tensor, shape_tensor, precision=precision
)
if joint[2] == 1.0
else tf.zeros(shape_tensor, dtype=precision)
else tf.zeros(tf.cast(shape_tensor, dtype=tf.dtypes.int32), dtype=precision)
),
elems=joints,
dtype=precision,
Expand Down

0 comments on commit 56d9ae9

Please sign in to comment.