Skip to content
Discussion options

You must be logged in to vote

while I would advise against using custom backends in this case for the reason that it is fragile (and unnecessarily limiting to a single on-disk format / engine), note that it is technically possible to do this by making use of private API.

The way the backends work is that the backend array type (a type that can fetch bytes from disk and convert to a numpy array) is wrapped in a internal lazy array type (LazilyIndexedArray), and when decoding multiple functions are applied to this using lazy_elemwise_func which takes care not to delay loading the data into memory until told to (for example, when accessing .data). Being private API, however, this function can be moved around or changed w…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by muttener
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants