Skip to content

Commit

Permalink
Fixing build and doc errors after PR merge (#154)
Browse files Browse the repository at this point in the history
* update docs references and remove implicit optional in unet.py
* trying PEP604 syntax
  • Loading branch information
ssenan authored Jun 23, 2023
1 parent d93906b commit a55002d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 19 deletions.
21 changes: 3 additions & 18 deletions docs/reference/dnadiffusion.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,7 @@

## dnadiffusion

::: dnadiffusion.trainer
options:
show_root_heading: true
show_source: false

::: dnadiffusion.configs
options:
show_root_heading: true
show_source: false

::: dnadiffusion.sample
::: dnadiffusion.utils.train_util
options:
show_root_heading: true
show_source: false
Expand All @@ -26,17 +16,12 @@

## models

::: dnadiffusion.models.modules
::: dnadiffusion.models.layers
options:
show_root_heading: true
show_source: false

::: dnadiffusion.models.training_modules
options:
show_root_heading: true
show_source: false

::: dnadiffusion.models.networks
::: dnadiffusion.models.diffusion
options:
show_root_heading: true
show_source: false
Expand Down
3 changes: 2 additions & 1 deletion src/dnadiffusion/models/unet.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
from functools import partial
from typing import Optional

from memory_efficient_attention_pytorch import Attention as EfficientAttention

Expand All @@ -9,7 +10,7 @@ class UNet(nn.Module):
def __init__(
self,
dim: int,
init_dim: Optional[int] = None,
init_dim: int | None = None,
dim_mults: tuple = (1, 2, 4),
channels: int = 1,
resnet_block_groups: int = 8,
Expand Down

0 comments on commit a55002d

Please sign in to comment.