parenchyma icon indicating copy to clipboard operation
parenchyma copied to clipboard

Consider using a tensor lib for native memory (instead of flat slices)

Open jonysy opened this issue 7 years ago • 1 comments

jonysy avatar Mar 04 '17 02:03 jonysy

alexandermorozov:

ndarray solves first part by accepting constant values, slices, Vecs and iterators as initializers. But it doesn't allow to allocate uninitialized chunk of memory to be overwritten later; looks like there is no way to statically check if usage is correct, so checks have to be done at runtime and that'll have a small runtime cost.

jonysy avatar Mar 05 '17 21:03 jonysy