标题: 报错了:AttributeError: 'Model' object has no attribute 'metrics_tensors' [打印本页] 作者: 东方耀 时间: 2019-12-25 18:11 标题: 报错了:AttributeError: 'Model' object has no attribute 'metrics_tensors' 报错了:AttributeError: 'Model' object has no attribute 'metrics_tensors'
不用降低keras版本,我用下面这个方法可行!
What about changing: self.keras_model.metrics_tensors.append(loss)
to: self.keras_model.add_metric(loss, name)