Add missing f str (#306)
Co-authored-by: Chunyang Wen <[email protected]>
This commit is contained in:
co-authored by
Chunyang Wen
parent
05767b026f
commit
040c3bafab
@@ -19,7 +19,7 @@ class Dropout(Module):
|
||||
super().__init__()
|
||||
|
||||
if p < 0 or p >= 1:
|
||||
raise ValueError("The dropout probability {p} is not in [0, 1)")
|
||||
raise ValueError(f"The dropout probability {p} is not in [0, 1)")
|
||||
|
||||
self._p_1 = 1 - p
|
||||
|
||||
|
||||
Reference in New Issue
Block a user