powered by
Concatenates two or more tensor nodes along the specified axis.
ggml_layer_concatenate(tensors, axis = 0L, name = NULL)
A new ggml_tensor_node representing the concatenated tensor.
ggml_tensor_node
A list of ggml_tensor_node objects (length >= 2).
Integer axis along which to concatenate (0-based, ggml convention). Default 0L concatenates along the first dimension (features for flat tensors).
0L
Optional character name for the layer.
# \donttest{ x <- ggml_input(shape = 32L) y <- ggml_input(shape = 32L) out <- ggml_layer_concatenate(list(x, y), axis = 0L) # }
Run the code above in your browser using DataLab