]> git.djapps.eu Git - pkg/ggml/sources/ggml/commitdiff
metal : remove invalid asserts (llama/7617)
authorGeorgi Gerganov <redacted>
Wed, 29 May 2024 19:20:40 +0000 (22:20 +0300)
committerGeorgi Gerganov <redacted>
Sat, 15 Jun 2024 19:05:47 +0000 (22:05 +0300)
src/ggml-kompute.cpp
src/ggml-metal.m

index 18ce95ebf1dac9555db70762b59482b6ead98d63..0c51c322f8df1eb10f480adbf29e5dd13158e7fe 100644 (file)
@@ -1597,9 +1597,6 @@ static void ggml_vk_graph_compute(struct ggml_kompute_context * ctx, struct ggml
                     {
                         GGML_ASSERT(ne00 == ne10);
 
-                        GGML_ASSERT(ggml_is_contiguous_2(src0));
-                        GGML_ASSERT(ggml_is_contiguous_2(src1));
-
                         GGML_ASSERT(ne12 % ne02 == 0);
                         GGML_ASSERT(ne13 % ne03 == 0);
 
index e7c4298a283f5726a6747da4d2291e600348c924..079912952f1e1049f97ab58de837942e19fee2f4 100644 (file)
@@ -1519,9 +1519,6 @@ static enum ggml_status ggml_metal_graph_compute(
                     {
                         GGML_ASSERT(ne00 == ne10);
 
-                        GGML_ASSERT(ggml_is_contiguous_2(src0));
-                        GGML_ASSERT(ggml_is_contiguous_2(src1));
-
                         GGML_ASSERT(ne12 % ne02 == 0);
                         GGML_ASSERT(ne13 % ne03 == 0);