Skip to content

Commit f2fd033

Browse files
committed
ggml : build fixes
1 parent 95e9d8a commit f2fd033

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

ggml-metal.m

+1-2
Original file line numberDiff line numberDiff line change
@@ -797,7 +797,6 @@ static bool ggml_metal_supports_op(const struct ggml_tensor * op) {
797797
default:
798798
return false;
799799
}
800-
break;
801800
case GGML_OP_NONE:
802801
case GGML_OP_RESHAPE:
803802
case GGML_OP_VIEW:
@@ -827,7 +826,7 @@ static bool ggml_metal_supports_op(const struct ggml_tensor * op) {
827826
case GGML_OP_GET_ROWS:
828827
{
829828
return op->ne[0] % 4 == 0;
830-
} break;
829+
}
831830
default:
832831
return false;
833832
}

ggml.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -14100,7 +14100,7 @@ static void ggml_compute_forward(struct ggml_compute_params * params, struct ggm
1410014100
} break;
1410114101
case GGML_OP_SOFT_MAX:
1410214102
{
14103-
ggml_compute_forward_soft_max(params, tensor->src[0], tensor);
14103+
ggml_compute_forward_soft_max(params, tensor->src[0], tensor->src[1], tensor);
1410414104
} break;
1410514105
case GGML_OP_SOFT_MAX_BACK:
1410614106
{

0 commit comments

Comments
 (0)