Please confirm you are human

This browser or connection looks automated. Press and continuously hold the control for 3 seconds to enable Google-hosted web results and, when separately allowed, AI-assisted answers.

A successful check enables 100 search requests. Interactive access does not authorize scraping, systematic collection, or reuse of search output.

Hold with a pointer, or hold Space or Enter.

News

DEV Community
dev.to > nabbisen > matten-tensor-koa-ea9

matten: `Tensor` コア

2+ mon, 1+ week ago   (409+ words) これは matten を紹介する全 4 回シリーズの第 2 回です。第 1 回では背景を説明しました。今回はライブラリの実際の使い方を紹介します。 はじめ方 # Cargo.toml [dependencies] matten = "0.28" デフォルトの features には serde、json、csv が含まれています。依存関係をできるだけ小さくしたい場合は無効にします: matten = { version = "0.28", default-features = false } テンソルをつくる use matten::Tensor; をインポートするだけです。ジェネリクスの型パラメータも、ライフタイムアノテーションも不要です。 use matten::Tensor; // データとシェイプを明示してつくる let a = Tensor::new…...