请问:在第五章可视化类热力图,编译一直报错。 grads = K.gradients(african_elephant_output, last_conv_layer.output)[0] :cost must be a scalar. 如何改正? 从网上找了源码运行,还是报一样的错误。
评论了
请问:在第五章可视化类热力图,编译一直报错。 grads = K.gradients(african_elephant_output, last_conv_layer.output)[0] :cost must be a scalar. 如何改正? 从网上找了源码运行,还是报一样的错误。