Does anyone know what this error means?
Thanks
ValueError Traceback (most recent call last)
in
8 A3 = identity_block(X, f=2, filters=[4, 4, 3],
9 initializer=lambda seed=0:constant(value=1),
—> 10 training=False)
11 print(‘\033[1mWith training=False\033[0m\n’)
12 A3np = A3.numpy()in identity_block(X, f, filters, training, initializer)
32 ## Second component of main path (≈3 lines)
33 X = Conv2D(filters = F2, kernel_size = 1, strides = (1,1), padding = ‘valid’, kernel_initializer = initializer(seed=0))
—> 34 X = BatchNormalization(axis = 3)(X, training = training)
35 X = Activation(‘relu’)(X)
36/usr/local/lib/python3.6/dist-packages/tensorflow/python/keras/engine/base_layer.py in call(self, *args, **kwargs)
980 with ops.name_scope_v2(name_scope):
981 if not self.built:
→ 982 self._maybe_build(inputs)
983
984 with ops.enable_auto_cast_variables(self._compute_dtype_object):/usr/local/lib/python3.6/dist-packages/tensorflow/python/keras/engine/base_layer.py in _maybe_build(self, inputs)
2641 # operations.
2642 with tf_utils.maybe_init_scope(self):
→ 2643 self.build(input_shapes) # pylint:disable=not-callable
2644 # We must set also ensure that the layer is marked as built, and the build
2645 # shape is stored since user defined build functions may not be calling/usr/local/lib/python3.6/dist-packages/tensorflow/python/keras/layers/normalization.py in build(self, input_shape)
285 input_shape = tensor_shape.TensorShape(input_shape)
286 if not input_shape.ndims:
→ 287 raise ValueError(‘Input has undefined rank:’, input_shape)
288 ndims = len(input_shape)
289ValueError: (‘Input has undefined rank:’, TensorShape(None))