Skip to content

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

@behrica

Description

@behrica

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]]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions