我有下面的代码,我需要删除模型的一些层并执行预测。但目前我正在检索错误。one such list for each sample in the batch)错误base_model.input, outputs=base_model .layers[-2].output)
AttributeError: 'Tensor' obje
我正在使用带有以下结构的TensorFlow后端构建带有Keras的CNN: def createModel(self(注意:扁平层不受FPGA内核的支持,程序最终将在FPGA上运行,因此我不能使用它们。)上面的代码会产生以下错误:
AttributeError: 'Tensor' object has no attribute &