Fixes an issue whereby the score function for attribution is allowed to reduce over the batch dimension, even though that dimension should always be summed over. This causes unexpected behavior when passing in tf.reduce_max, for example. Instead, an exception is now raised advising what should be passed in instead.
Fixes an issue whereby the score function for attribution is allowed to reduce over the batch dimension, even though that dimension should always be summed over. This causes unexpected behavior when passing in
tf.reduce_max
, for example. Instead, an exception is now raised advising what should be passed in instead.