我尝试使用tensorflow使用以下代码来连接各层,但得到了一个意外的错误。我是tensorflow的新手x1= layers.Conv2D(16 ,(3,3), activation='relu')(inp): A `Concatenate` layer requires inputs with matching shapes except for the concat axis.Got inputs shapes: [(N
我正在尝试对来自UNet中间层的图像进行预处理。在尝试连接时,我得到了以下错误。我尝试重塑张量,但它不能从(1,352,640,64)转换为(None,352,640,64)。即使是layers None值也不能更改。如何解决这个问题?我需要将1改为None,或者反之亦然,这样两个形状都是相似的。ValueError: A Concatenate layer requires inputs with matching shapes e