Skip to content

Commit

Permalink
[Doc] Fix typo in torchrl/modules/distributions/continuous.py (#2624)
Browse files Browse the repository at this point in the history
  • Loading branch information
0xMana-git authored Dec 3, 2024
1 parent c72583f commit b2e9f29
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion torchrl/modules/distributions/continuous.py
Original file line number Diff line number Diff line change
Expand Up @@ -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."
)

Expand Down

1 comment on commit b2e9f29

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Performance Alert ⚠️

Possible performance regression was detected for benchmark 'CPU Benchmark Results'.
Benchmark result of this commit is worse than the previous benchmark result exceeding threshold 2.

Benchmark suite Current: b2e9f29 Previous: c72583f Ratio
benchmarks/test_replaybuffer_benchmark.py::test_rb_populate[TensorDictReplayBuffer-ListStorage-SamplerWithoutReplacement-400] 35.64789789560605 iter/sec (stddev: 0.1691805946768077) 222.61103861959054 iter/sec (stddev: 0.0008662625313177362) 6.24

This comment was automatically generated by workflow using github-action-benchmark.

CC: @vmoens

Please sign in to comment.