76 using RowMajorMatrixXf = Eigen::Matrix<float, Eigen::Dynamic, Eigen::Dynamic, Eigen::RowMajor>;
160 int64_t
size()
const;
166 const std::vector<int64_t>&
shape()
const;
173 int64_t
shape(
int dim)
const;
201 const float*
data()
const;
264 static int64_t computeSize(
const std::vector<int64_t>&
shape);
266 std::shared_ptr<std::vector<float>> m_storage;
267 float* m_data =
nullptr;
268 std::vector<int64_t> m_shape;
Export/import macros, build-stamp accessors and namespace anchor for the MLLIB machine-learning libra...
Tensors, model abstraction, ONNX Runtime inference and Python training drivers used across mne-cpp.
Eigen::MatrixXf toMatrixXf() const
Eigen::Map< RowMajorMatrixXf > RowMajorMatrixMap
Eigen::Matrix< float, Eigen::Dynamic, Eigen::Dynamic, Eigen::RowMajor > RowMajorMatrixXf
static MlTensor fromBuffer(const float *data, int rows, int cols)
Eigen::MatrixXd toMatrixXd() const
static MlTensor view(float *data, std::vector< int64_t > shape)
MlTensor(const Eigen::MatrixXd &mat)
RowMajorMatrixMap matrix()
MlTensor(const Eigen::MatrixXf &mat)
MlTensor reshape(std::vector< int64_t > newShape) const
const std::vector< int64_t > & shape() const
Eigen::Map< const RowMajorMatrixXf > ConstRowMajorMatrixMap