NumSharp icon indicating copy to clipboard operation
NumSharp copied to clipboard

Error when loading a `.npy` file containing a scalar value

Open thalesfm opened this issue 1 year ago • 0 comments

Due to an off-by-one error, np.load fails to parse the file's header when shape = () and triggers an ArgumentOutOfRangeException (Also, the function doesn't consider this possibility when calculating the size of the underlying buffer).

thalesfm avatar Sep 24 '24 17:09 thalesfm