ValueError: No gradients provided for any variable: ['conv2d/kernel:0', 'conv2d/bias:0', 'conv2d_1/kernel:0', 'conv2d_1/bias:0',
问题 System information Colab tensorflow 2.2.0 Describe the current behavior: I faced this error when i tried to solve my own data issues, which is multiple label semantic segmentations. Below is the code import tensorflow as tf import tensorflow.keras.backend as K IMG_WIDTH = 512 IMG_HEIGHT = 512 IMG_CHANNELS = 3 # batch_shape=(512,512,3) # inputs = Input(batch_shape=(4, 512, 512, 3)) #Build the model inputs = tf.keras.layers.Input((IMG_HEIGHT, IMG_WIDTH, IMG_CHANNELS)) #s = tf.keras.layers