Deep Learning Visualizer
Interactive visualization of basic applications of deep learning
Loading...
Searching...
No Matches
idx_matrix.h
Go to the documentation of this file.
1
#pragma once
2
5
#include <cstdint>
6
#include <filesystem>
7
#include <vector>
8
9
namespace
shared {
10
17
class
idx_matrix
{
18
public
:
25
explicit
idx_matrix
(
const
std::filesystem::path &file_path);
26
27
[[nodiscard]]
const
std::vector<uint8_t> &data()
const
;
28
[[nodiscard]] std::int64_t rows()
const
;
29
[[nodiscard]] std::int64_t cols()
const
;
30
31
private
:
32
std::int64_t rows_{};
33
std::int64_t cols_{};
34
std::vector<uint8_t> data_;
35
};
36
37
}
// namespace shared
shared::idx_matrix
Represents matrix data from an IDX file as a one dimensional vector.
Definition
idx_matrix.h:17
src
shared
idx_matrix.h
Generated by
1.9.8