Skip to content

tenzr:🇮🇴:TensorDescriptor

Header metadata for one tensor in a safetensors file: name, dtype, shape, and payload byte range.

#include <safetensors.h>

Public Attributes

Name
std::string name
DType dtype
Shape shape
uint64_t data_start
uint64_t data_end

Public Attributes Documentation

variable name

std::string name;

variable dtype

DType dtype {DType::kFloat32};

variable shape

Shape shape;

variable data_start

uint64_t data_start {0};

variable data_end

uint64_t data_end {0};