From b2e9f291ad2862e6b9d8d34e68d0e2607acc9295 Mon Sep 17 00:00:00 2001 From: Mana <57663038+0xMana-git@users.noreply.github.com> Date: Mon, 2 Dec 2024 23:15:18 -0800 Subject: [PATCH] [Doc] Fix typo in torchrl/modules/distributions/continuous.py (#2624) --- torchrl/modules/distributions/continuous.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/torchrl/modules/distributions/continuous.py b/torchrl/modules/distributions/continuous.py index f32a3b0c6fa..eb9093dbcfe 100644 --- a/torchrl/modules/distributions/continuous.py +++ b/torchrl/modules/distributions/continuous.py @@ -554,7 +554,7 @@ def get_mode(self): def mean(self): raise NotImplementedError( f"{type(self).__name__} does not have a closed form formula for the average. " - "Am estimate of this value can be computed using dist.sample((N,)).mean(dim=0), " + "An estimate of this value can be computed using dist.sample((N,)).mean(dim=0), " "where N is a large number of samples." )