• Jesse Gross's avatar
    ggml: Automatically make tensors contiguous on reshape · b6e02cbb
    Jesse Gross authored
    GGML requires tensors to be contiguous for reshape and if
    this is not the case, it will assert fail. Contiguous is an
    expensive operation, so it's best to do it lazily when it is
    actually required rather than ahead of time when it may not
    be needed.
    b6e02cbb
ggml.go 47 KB