ggml_diag_mask_zero_inplace function

  1. @Native<Pointer<ggml_tensor> Function(Pointer<ggml_context>, Pointer<ggml_tensor>, Int)>(ffi.Pointer<ggml_context>, ffi.Pointer<ggml_tensor>, ffi.Int)>()
Pointer<ggml_tensor> ggml_diag_mask_zero_inplace(
  1. Pointer<ggml_context> ctx,
  2. Pointer<ggml_tensor> a,
  3. int n_past
)

in-place, returns view(a)

Implementation

@ffi.Native<
  ffi.Pointer<ggml_tensor> Function(
    ffi.Pointer<ggml_context>,
    ffi.Pointer<ggml_tensor>,
    ffi.Int,
  )
>()
external ffi.Pointer<ggml_tensor> ggml_diag_mask_zero_inplace(
  ffi.Pointer<ggml_context> ctx,
  ffi.Pointer<ggml_tensor> a,
  int n_past,
);