We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 17846b9 commit 9475ad7Copy full SHA for 9475ad7
neural_network/input_data.py
@@ -156,9 +156,7 @@ 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
- f"Invalid image dtype {repr(dtype)}, expected uint8 or float32"
161
- )
+ raise TypeError("Invalid image dtype {!r}, expected uint8 or float32".format(dtype))
162
if fake_data:
163
self._num_examples = 10000
164
self.one_hot = one_hot
0 commit comments