metric.compute() seems to call metric.add_batch automatically

#4
by surya-narayanan - opened

I'm facing an error while using this metric. Calling it on two simple [1 x 512] tensors, seems to throw an error. Here is the code I'm using.

acc = acc_metric.compute(prediction = a, references = b)['accuracy']

The error I get, is that self.add_batch() seems to be called automatically and complains that there's no batch in the singleton element.

Sign up or log in to comment