Skip to main content

NumpyLoader

NumpyLoader

Numpy data loader implementation. More…

#include <NumpyLoader.hpp>

Inherits from DataLoader

Public Functions

Name
virtual std::string getFormatId() const override
Get the format identifier.
virtual bool supportsDataType(DM_DataType data_type) const override
Check if this loader supports the given data type.
virtual LoadResult loadData(std::string const & file_path, DM_DataType data_type, nlohmann::json const & config) const override
Load data from .npy file.

Additional inherited members

Public Functions inherited from DataLoader

Name
virtual ~DataLoader() =default

Detailed Description

class NumpyLoader;

Numpy data loader implementation.

This loader supports loading data types from .npy (numpy) format files. Currently supports:

Public Functions Documentation

function getFormatId

virtual std::string getFormatId() const override

Get the format identifier.

Reimplements: DataLoader::getFormatId

function supportsDataType

virtual bool supportsDataType(
    DM_DataType data_type
) const override

Check if this loader supports the given data type.

Reimplements: DataLoader::supportsDataType

function loadData

virtual LoadResult loadData(
    std::string const & file_path,
    DM_DataType data_type,
    nlohmann::json const & config
) const override

Load data from .npy file.

Reimplements: DataLoader::loadData


Updated on 2026-11-13 at 20:25:40 +0000