以下代码片段给出错误(图表已断开:无法获取张量的值):
x = Concatenate (axis = 1) (submodel_outputs)
parallel_layers = Model (inputs = embedding_layers [0] .input, outputs = x)
embedding_layers [0] .get_input_at (0) 的值等于:
<tf.Tensor 'embedding_8_input: 0' shape = (?, 100) dtype = float32>
变量 x 是 3 个模型的串联,例如:
- embedding_8 (嵌入) - (无, 100, 300)
- dropout_22 (辍学) - (无, 100, 300)
- skip_conv1d_22 (SkipConv1D- (无, 100, 100)
- max_pooling1d_22 (MaxPooling)(无, 25, 100)
我已经尝试了一切,但错误仍在继续。我该怎么做才能使以下行起作用:
parallel_layers = Model (inputs = embedding_layers [0] .input, outputs = x)