Преглед изворни кода

metal : remove invalid asserts (#7617)

Georgi Gerganov пре 1 година
родитељ
комит
55d62262a9
2 измењених фајлова са 0 додато и 6 уклоњено
  1. 0 3
      ggml-kompute.cpp
  2. 0 3
      ggml-metal.m

+ 0 - 3
ggml-kompute.cpp

@@ -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);
 

+ 0 - 3
ggml-metal.m

@@ -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);