powered by
Create 2D tensor
Create 2D Tensor
ggml_new_tensor_2d(ctx, type = GGML_TYPE_F32, ne0, ne1)ggml_new_tensor_2d(ctx, type = GGML_TYPE_F32, ne0, ne1)
ggml_new_tensor_2d(ctx, type = GGML_TYPE_F32, ne0, ne1)
Tensor pointer
GGML context
Data type
Rows
Columns
# \donttest{ ctx <- ggml_init(1024 * 1024) tensor <- ggml_new_tensor_2d(ctx, GGML_TYPE_F32, 10, 20) ggml_nelements(tensor) ggml_free(ctx) # }
Run the code above in your browser using DataLab