Add missing f str (#306)

Co-authored-by: Chunyang Wen <chunyang_wen@apple.com>
This commit is contained in:
Chunyang Wen 2023-12-28 22:09:34 +08:00 committed by GitHub
parent 05767b026f
commit 040c3bafab
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -19,7 +19,7 @@ class Dropout(Module):
super().__init__() super().__init__()
if p < 0 or p >= 1: 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 self._p_1 = 1 - p