我正在使用TensorFlow 2.0进行文本分类。 数据结构或多或少如下所示: 第一种方法: x: List[List[int]] # list of sentences consisting of a list of word IDs for each word in the sentence
y: List[int] # binary truth indicator 但是,当调用model.fit(...)时,我收到以下错误消息: Failed to find data adapter that can handle input: (<class 'list'&g