pulsatrix
Loading...
Searching...
No Matches
image_decoder.hpp
Go to the documentation of this file.
1
5#pragma once
6
7#include <string>
8
10#include "pulsatrix/tensor.hpp"
11
12namespace pulsatrix {
13
23public:
37 [[nodiscard]] static Tensor DecodeFile(const std::string& path, DeviceBackend* backend, int desired_channels = 0);
38};
39
40} // namespace pulsatrix
Vendor-agnostic compute/memory backend. CPUBackend, CUDABackend (Phase 1.5), and HIPBackend (Phase 1....
Definition device_backend.hpp:219
Decodes an image file into a Tensor – pulsatrix's generalization beyond MnistIdxLoader's IDX-format-o...
Definition image_decoder.hpp:22
static Tensor DecodeFile(const std::string &path, DeviceBackend *backend, int desired_channels=0)
N-dimensional tensor. Owns its data buffer exclusively; a DeviceBackend* is injected (not owned) – th...
Definition tensor.hpp:29
Abstract interface isolating vendor-specific memory/compute operations from Tensor/ComputationGraph.
Definition acquisition_functions.hpp:16
N-dimensional tensor – owns a buffer via DeviceBackend*, RAII (Rule of Five).