(def a (tensor [3 2 1] :float :ncw))
;=> #'user/a
(desc a)
;=> #uncomplicate.diamond.tensor.TensorDescriptorImpl {:shape [3 2 1], :data-type :float, :layout [2 1 1]}
(.stride a)
;=> 1
(.stride (view-tz a [3 1 1]))
;Execution error (NullPointerException) at uncomplicate.diamond.internal.dnnl.tensor.DnnlTensor/stride (tensor.clj:442).
;Cannot invoke "uncomplicate.neanderthal.internal.api.Block.stride()" because "this.vector_view" is null
This is a simplified case. In real usage this codepath is executed when foldmap is to be internally used on strided tensors (non-contiguous vctr-view).
For instance (mul strided-tz-view strided-tz-view)
This is a simplified case. In real usage this codepath is executed when
foldmapis to be internally used on strided tensors (non-contiguous vctr-view).For instance
(mul strided-tz-view strided-tz-view)