heres my error code - i just looked for similar before i posted im sure im not the first here is my error code :---------------------------------------------------------------------------
ValueError Traceback (most recent call last)
Input In [18], in <cell line: 13>()
9 X3 = np.ones((1, 4, 4, 3)) * 3
11 X = np.concatenate((X1, X2, X3), axis = 0).astype(np.float32)
—> 13 A3 = identity_block(X, f=2, filters=[4, 4, 3],
14 initializer=lambda seed=0:constant(value=1))
15 print(‘\033[1mWith training=False\033[0m\n’)
16 A3np = A3.numpy()
Input In [16], in identity_block(X, f, filters, initializer, training, s)
48 X_shortcut = BatchNormalization(axis=3)(X_shortcut)
50 ## Final step: Add shortcut value to main path, and pass it through a RELU activation (≈2 lines)
—> 51 X = Add()([X, X_shortcut])
52 ##X = Activation(‘relu’)(X)
53 return X
File /usr/local/lib/python3.8/dist-packages/keras/utils/traceback_utils.py:67, in filter_traceback..error_handler(*args, **kwargs)
65 except Exception as e: # pylint: disable=broad-except
66 filtered_tb = _process_traceback_frames(e.traceback)
—> 67 raise e.with_traceback(filtered_tb) from None
68 finally:
69 del filtered_tb
File /usr/local/lib/python3.8/dist-packages/keras/layers/merging/base_merge.py:73, in _Merge._compute_elemwise_op_output_shape(self, shape1, shape2)
71 else:
72 if i != j:
—> 73 raise ValueError(
74 ‘Inputs have incompatible shapes. ’
75 f’Received shapes {shape1} and {shape2}’)
76 output_shape.append(i)
77 return tuple(output_shape)
ValueError: Inputs have incompatible shapes. Received shapes (4, 4, 3) and (2, 2, 3)