其他分享
首页 > 其他分享> > keras中使用concatenate报错

keras中使用concatenate报错

作者:互联网

Layer concatenate_1 was called with an input that isn't a symbolic tensor. Received type: <class 'tuple'>. Full input:

原代码

x = concatenate((input_1, input_2), axis=1)

修改代码

x = concatenate([input_1, input_2], axis=1)

标签:concatenate,Received,keras,报错,原代码,input,axis
来源: https://blog.csdn.net/Stanford6/article/details/119374967