We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ed8a771 commit 3298613Copy full SHA for 3298613
neural_network/input_data.py
@@ -156,9 +156,8 @@ def __init__(
156
self._rng = np.random.default_rng(seed1 if seed is None else seed2)
157
dtype = dtypes.as_dtype(dtype).base_dtype
158
if dtype not in (dtypes.uint8, dtypes.float32):
159
- raise TypeError(
160
- "Invalid image dtype {!r}, expected uint8 or float32".format(dtype)
161
- )
+ msg = f"Invalid image dtype {dtype!r}, expected uint8 or float32"
+ raise TypeError(msg)
162
if fake_data:
163
self._num_examples = 10000
164
self.one_hot = one_hot
0 commit comments