clj-python/libpython-clj

as-tensor in Usage.ml return nil instead of tensor

behrica opened this issue · 1 comments

user> (def tens-data (as-tensor ones-ary))

(require '[libpython-clj2.python :as py])

(require '[tech.v3.tensor :refer [as-tensor]])
(py/initialize!)
(def np (py/import-module "numpy"))
(def ones-ary (py/call-attr np "ones" [2 3]))


(as-tensor ones-ary)

gives nil while Usage.ml says it should give

#tech.v2.tensor<float64>[2 3]
[[1.000 1.000 1.000]
 [1.000 1.000 1.000]]

Fixed in #f231642d