Returns a tensor with the same shape as a but of the given type.
Unlike ggml_cpy there is no need to allocate the destination
tensor first. Some ggml operations require a specific type -- for example
ggml_conv_1d builds its im2col in F16 and so needs an F16
kernel -- and this is the direct way to supply one.