From 1df6e020b9d08abedb2f3fe6256d56e659f755f5 Mon Sep 17 00:00:00 2001 From: Bobak Hashemi Date: Thu, 5 Jan 2023 09:43:50 -0800 Subject: [PATCH] minor doc fix Reviewed By: ananthsub Differential Revision: D42251718 fbshipit-source-id: c2d0ef43b6a630520c4f61e1a5da6ae58bf05214 --- torcheval/metrics/text/bleu.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/torcheval/metrics/text/bleu.py b/torcheval/metrics/text/bleu.py index db163f48..6b0eb6ea 100644 --- a/torcheval/metrics/text/bleu.py +++ b/torcheval/metrics/text/bleu.py @@ -41,7 +41,7 @@ class BLEUScore(Metric[torch.Tensor]): >>> references = [["i like apple pie with ice cream on top", "i like ice cream with my apple pie", "i enjoy my apple pie with ice cream"]] >>> metric.update(candidates, references) >>> metric.compute() - tensor([0.56377503]) + tensor(0.56377503) """ def __init__(