Learn R Programming

ggmlR (version 0.6.1)

ggml_is_contiguous: Check if Tensor is Contiguous

Description

Returns TRUE if tensor data is stored contiguously in memory

Usage

ggml_is_contiguous(tensor)

Value

Logical

Arguments

tensor

Tensor pointer

Examples

Run this code
# \donttest{
ctx <- ggml_init(1024 * 1024)
t <- ggml_new_tensor_1d(ctx, GGML_TYPE_F32, 10)
ggml_is_contiguous(t)
ggml_free(ctx)
# }

Run the code above in your browser using DataLab