TinyLlama.cpp 1.0
A lightweight C++ implementation of the TinyLlama language model
Loading...
Searching...
No Matches
Public Attributes | List of all members
GGUFTensorInfo Struct Reference

Information about a tensor stored in a GGUF file. More...

#include <gguf_structs.h>

Collaboration diagram for GGUFTensorInfo:
Collaboration graph

Public Attributes

std::string name
 
std::vector< uint64_t > shape
 
GGMLType type
 
uint64_t offset
 
size_t num_elements
 
size_t size_in_bytes
 

Detailed Description

Information about a tensor stored in a GGUF file.

Definition at line 63 of file gguf_structs.h.

Member Data Documentation

◆ name

std::string GGUFTensorInfo::name

Name of the tensor

Definition at line 64 of file gguf_structs.h.

Referenced by load_gguf_meta().

◆ num_elements

size_t GGUFTensorInfo::num_elements

Total number of elements in tensor

Definition at line 68 of file gguf_structs.h.

Referenced by load_gguf_meta().

◆ offset

uint64_t GGUFTensorInfo::offset

Offset of tensor data in file

Definition at line 67 of file gguf_structs.h.

Referenced by load_gguf_meta().

◆ shape

std::vector<uint64_t> GGUFTensorInfo::shape

Shape of the tensor as dimensions

Definition at line 65 of file gguf_structs.h.

Referenced by load_gguf_meta().

◆ size_in_bytes

size_t GGUFTensorInfo::size_in_bytes

Total size of tensor data in bytes

Definition at line 69 of file gguf_structs.h.

Referenced by load_gguf_meta().

◆ type

GGMLType GGUFTensorInfo::type

Data type of the tensor

Definition at line 66 of file gguf_structs.h.

Referenced by load_gguf_meta().


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