Skip to content

Commit

Permalink
solve sequence issue
Browse files Browse the repository at this point in the history
  • Loading branch information
thibaultdvx committed Oct 16, 2024
1 parent 1cd7597 commit 5a06a3e
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 12 deletions.
3 changes: 1 addition & 2 deletions clinicadl/monai_networks/nn/autoencoder.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
from collections.abc import Sequence
from typing import Any, Dict, List, Literal, Optional, Tuple, Union
from typing import Any, Dict, List, Literal, Optional, Sequence, Tuple, Union

import numpy as np
import torch.nn as nn
Expand Down
3 changes: 1 addition & 2 deletions clinicadl/monai_networks/nn/cnn.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
from collections.abc import Sequence
from typing import Any, Dict, Optional
from typing import Any, Dict, Optional, Sequence

import numpy as np
import torch.nn as nn
Expand Down
3 changes: 1 addition & 2 deletions clinicadl/monai_networks/nn/conv_decoder.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
from collections.abc import Sequence
from typing import Callable, Optional, Tuple
from typing import Callable, Optional, Sequence, Tuple

import torch.nn as nn
from monai.networks.blocks import Convolution
Expand Down
3 changes: 1 addition & 2 deletions clinicadl/monai_networks/nn/conv_encoder.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
from collections.abc import Sequence
from typing import Callable, List, Optional, Tuple
from typing import Callable, List, Optional, Sequence, Tuple

import numpy as np
import torch.nn as nn
Expand Down
3 changes: 1 addition & 2 deletions clinicadl/monai_networks/nn/generator.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
from collections.abc import Sequence
from typing import Any, Dict, Optional
from typing import Any, Dict, Optional, Sequence

import numpy as np
import torch.nn as nn
Expand Down
3 changes: 1 addition & 2 deletions clinicadl/monai_networks/nn/mlp.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
from collections import OrderedDict
from collections.abc import Sequence
from typing import Optional
from typing import Optional, Sequence

import torch.nn as nn
from monai.networks.blocks import ADN
Expand Down

0 comments on commit 5a06a3e

Please sign in to comment.