dtype-next icon indicating copy to clipboard operation
dtype-next copied to clipboard

The result of `compute-tensor` is printed in slices

Open daslu opened this issue 3 weeks ago • 1 comments

$ clj -Sdeps '{:deps {cnuernber/dtype-next {:mvn/version "10.146"}}}'
Clojure 1.12.2
user=> (require '[tech.v3.tensor :as tensor])
nil
user=> (tensor/compute-tensor
   [3 4]
   (fn [row col]
     (+ (* row 10) col))
   :int32)
[#tech.v3.tensor<int32>[4]
[0 1 2 3] #tech.v3.tensor<int32>[4]
[10 11 12 13] #tech.v3.tensor<int32>[4]
[20 21 22 23]]
[20 21 22 23]]
user=>

Zulip discussion with @harold: #tech.ml.dataset.dev > sometimes, tensors are printed in slices

daslu avatar Dec 08 '25 17:12 daslu

👍 - recreated this locally ... perhaps improve the printing of these raw compute-tensor outputs...

harold avatar Dec 08 '25 17:12 harold