标签: python tensorflow keras
尝试执行以下操作时出现上述错误:
sgd = SGD(lr=params.get('lr'), decay=1e-6, momentum=0.9) model.compile(loss='categorical_crossentropy', optimizer=sgd, metrics=['accuracy', f1_score])
错误:
TypeError:类型“ Tensor”的对象没有len()