Learn R Programming

ggmlR (version 0.6.1)

ggml_is_transposed: Check if Tensor is Transposed

Description

Returns TRUE if tensor has been transposed

Usage

ggml_is_transposed(tensor)

Value

Logical

Arguments

tensor

Tensor pointer

Examples

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

Run the code above in your browser using DataLab