Learn R Programming

ggmlR (version 0.8.1)

gguf_tensor_data: Extract Tensor Data

Description

Dequantizes (if needed) and returns tensor weights as an R numeric array with dimensions matching the tensor shape.

Usage

gguf_tensor_data(x, name)

Value

A numeric array.

Arguments

x

A gguf object.

name

Tensor name (character).