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