Skip to content

Cannot save large numpy arrays (larger than 4 GiB) #18784

@zacmon

Description

@zacmon

pickle.dump(array, fp, protocol=3, **pickle_kwargs)

My colleague was trying to save a large numpy array of output from a neural network (> 4 GiB). They were unable to save with pickle protocol = 3 but could save using pickle.HIGHEST_PROTOCOL by changing the source code. Is there any reason why this is set to 3 or why pickle.HIGHEST_PROTOCOL is not used? Is this something that could be specified in the numpy.save function?

Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions