Skip to content

mul of two strided vectors fails with NPE #31

@katox

Description

@katox
(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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions