title: TypeError: Value passed to parameter 'x' has DataType bool not in list of allowed values: bfloat16?
body: <p>I am working on Lung cancer nodule segmentation using Unet Technique, but I am facing the following error. How I can encounter this error. Thank you.</p>
  <p>I am using TensorFlow 2.8.0</p>
  <p>TypeError: in user code:</p>
  <pre><code>File &quot;C:\Users\dell\anaconda3\lib\site-packages\keras\engine\training.py&quot;, line 1021, in train_function  *
      return step_function(self, iterator)
  File &quot;C:\Users\dell\AppData\Local\Temp/ipykernel_12556/2390183560.py&quot;, line 47, in dice_coef  *
      dice_numerator = 2. * K.sum(y_true * y_pred, axis=axis) + epsilon
  
  TypeError: Value passed to parameter 'x' has DataType bool not in list of allowed values: bfloat16, float16, float32, float64, uint8, int8, uint16, int16, int32, uint32, uint64, int64, complex64, complex128**strong text**
  </code></pre>