Skip to content

Commit fa1ea6e

Browse files
committed
Made dropout_rate a required parameter in UNet.__init__
1 parent a2fff6c commit fa1ea6e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

XPointMLTest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -503,7 +503,7 @@ class UNet(nn.Module):
503503
"""
504504
Improved U-Net with residual blocks and better normalization
505505
"""
506-
def __init__(self, input_channels=4, base_channels=32, dropout_rate=0.2):
506+
def __init__(self, input_channels=4, base_channels=32, *, dropout_rate):
507507
super().__init__()
508508

509509
# Encoder

0 commit comments

Comments
 (0)