|
pulsatrix
|
N-dimensional tensor – owns a buffer via DeviceBackend*, RAII (Rule of Five). More...
#include <string>#include <stdexcept>#include <initializer_list>#include <vector>#include "pulsatrix/assert.hpp"#include "pulsatrix/device_backend.hpp"#include "pulsatrix/host_guard.hpp"#include "pulsatrix/shape.hpp"
Go to the source code of this file.
Classes | |
| class | pulsatrix::Tensor |
| N-dimensional tensor. Owns its data buffer exclusively; a DeviceBackend* is injected (not owned) – the backend must outlive every Tensor constructed against it, per cpp_style_guide/context_style_project_conventions.md's ownership table. More... | |
Namespaces | |
| namespace | pulsatrix |
Functions | |
| void | pulsatrix::require_device (const Tensor &t, DeviceType expected, const char *where) |
Throws unless t lives on expected – the check every module and loss runs on the tensors handed to it (roadmap FND-8, gpu_review #1). | |
N-dimensional tensor – owns a buffer via DeviceBackend*, RAII (Rule of Five).