as-tensor in Usage.ml return nil instead of tensor
behrica opened this issue · 1 comments
behrica commented
Line 344 in d37f06c
(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]]cnuernber commented
Fixed in #f231642d