Skip to content

Commit

Permalink
reformat
Browse files Browse the repository at this point in the history
  • Loading branch information
Kevin Dalton committed Apr 12, 2024
1 parent 5831c0d commit 616ca3e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
7 changes: 5 additions & 2 deletions docs/gen_ref_pages.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,15 @@

parts = tuple(module_path.parts)

# Only document classes imported in __init__.py
if parts[-1] == "__init__":
parts = parts[:-1]
doc_path = doc_path.with_name("index.md")
full_doc_path = full_doc_path.with_name("index.md")
elif parts[-1].startswith("_"):
else:
continue
# elif parts[-1].startswith("_"):
# continue

nav[parts] = doc_path.as_posix()

Expand All @@ -32,4 +35,4 @@
mkdocs_gen_files.set_edit_path(full_doc_path, path.relative_to(root))

with mkdocs_gen_files.open("reference/SUMMARY.md", "w") as nav_file:
nav_file.writelines(nav.build_literate_nav())
nav_file.writelines(nav.build_literate_nav(1))
3 changes: 2 additions & 1 deletion src/rs_distributions/distributions/folded_normal.py
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,8 @@ def pdf(self, value):

def rsample(self, sample_shape=torch.Size()):
"""
Generate differentiable random samples from the Folded Normal distribution
Generate differentiable random samples from the Folded Normal distribution.
Gradients are implemented using implicit reparameterization (https://arxiv.org/abs/1805.08498).
Args:
sample_shape (torch.Size, optional): The shape of the samples to generate.
Expand Down

0 comments on commit 616ca3e

Please sign in to comment.