Aidge backend OpenCV API#
Databases#
MNIST#
-
class MNIST : public Aidge::Database#
Public Types
Public Functions
-
inline MNIST(const std::string &dataPath, bool train, bool loadDataInMemory = false)#
Data Transformations.
-
~MNIST() noexcept#
-
virtual std::vector<std::shared_ptr<Tensor>> getItem(const std::size_t index) const final override#
Fetch an item of the database.
- Parameters:
index – index of the item.
- Returns:
vector of data mapped to index.
-
inline virtual std::size_t getLen() const noexcept final override#
Get the number of items in the database.
- Returns:
std::size_t
-
inline virtual std::size_t getNbModalities() const noexcept final override#
Get the number of modalities in one database item.
- Returns:
std::size_t
-
union MagicNumber#
-
inline MNIST(const std::string &dataPath, bool train, bool loadDataInMemory = false)#