我正在尝试用tf数据管道从几个文件中读取数据,并训练一个多输入神经网络。我成功地训练了模型,但当我想测试模型时,我得到了这个错误: TypeError: Inputs to a layer should be tensors.Got: <PrefetchDataset shapes: (((None, None), (None, None)), (None,)), types: ((tf.float32, tf.float32
我一直在尝试使用BERT训练句子相似度模型,但我遇到了这个错误。我确实找遍了,但找不到解决方案,有人能帮我吗?附加代码供您参考。 # Create the model under a distribution strategy scope. # Encoded token ids from BERT tokenizer. shape=(max_length
我正在尝试使用前面的20个值来预测时间序列中的下一个值。,我得到了以下错误:
TypeError: ('Bad input argument to theano function with name "/usr/local/lib/python2.7/dist-packageskeras/backend/theano_backend.py:484" at index 0(0-based)', 'Wrong number of dimens