gpu.cpp 0.1.0
 
Loading...
Searching...
No Matches
gpu::TensorView Struct Reference

Represents a non-owning view into a tensor specifying an offset and a subspan. This is useful for specifying a slice of a tensor on the GPU without copying the data. More...

#include <gpu.h>

Public Attributes

Tensor data
 
size_t offset = 0
 
size_t span = 0
 

Detailed Description

Represents a non-owning view into a tensor specifying an offset and a subspan. This is useful for specifying a slice of a tensor on the GPU without copying the data.

TensorView view = {tensor, 0, 256};
Represents a non-owning view into a tensor specifying an offset and a subspan. This is useful for spe...
Definition gpu.h:110

Definition at line 110 of file gpu.h.

Member Data Documentation

◆ data

Tensor gpu::TensorView::data

Definition at line 111 of file gpu.h.

◆ offset

size_t gpu::TensorView::offset = 0

Definition at line 112 of file gpu.h.

◆ span

size_t gpu::TensorView::span = 0

Definition at line 113 of file gpu.h.


The documentation for this struct was generated from the following file: