deep-diamond icon indicating copy to clipboard operation
deep-diamond copied to clipboard

NPE occurs when printing tensors if *print-length* is nil.

Open jjttjj opened this issue 1 year ago • 2 comments

Not a high priority issue but I hit this and figured I would log it here.

I believe *print-length* defaults to nil in clojure, but some of the print methods in deep-diamond depend on it being set or they throw an NPE. For example, here: https://github.com/uncomplicate/deep-diamond/blob/41913bf930bad92f8341ad679459827ac61ebf93/src/clojure/uncomplicate/diamond/internal/dnnl/tensor.clj#L521

jjttjj avatar Apr 17 '23 17:04 jjttjj