(rontolisp) docs
← 関数

torch:shape

(torch:shape tensor)

テンソルのデータの次元リスト (linalg の shape) を返します。スカラーテンソル (ランク 0) では nil です。