This is a bit of hidden flexibility built into the method reshape.
The keyword here should be explicit: you cannot do, for example:
myarray.reshape(1000, 1, 32, 32, "C")
You will get TypeErrorby indicating that an integer is required.
(In fact, even using a tuple:
myarray.reshape((1000, 1, 32, 32), "C")
causes TypeError.)
(, GitHub, , 0 1. . , ( ).
, : , .
.
.
, , , (). .
source
share