Skip to content

dtype/alloc-zeros error  #102

Description

@benjamin-asdf

Hi, I suppose this is a bug:

cnuernber/dtype-next {:mvn/version "10.113"}
(require '[tech.v3.datatype :as dtype])

(dtype/alloc-zeros :boolean 20)
Error printing return value (ClassCastException) at tech.v3.datatype.native_buffer.ObjectNativeBuf/subBuffer (native_buffer.clj:483).
class java.lang.Long cannot be cast to class clojure.lang.IFn (java.lang.Long is in module java.base of loader 'bootstrap'; clojure.lang.IFn is in unnamed module of loader 'app')

works with :int8.

More info:

  (let [v (dtype/alloc-zeros :boolean 2)]
    (dtt/->tensor v))
  
  ;; Execution error (NullPointerException) at tech.v3.datatype.copy/unsafe-copy-memory (copy.clj:70).
  ;; Cannot invoke "java.lang.Number.longValue()" because "x" is null

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions