minor : cleanup
This commit is contained in:
parent
4f787ead14
commit
d93b5cad0a
2 changed files with 3 additions and 13 deletions
|
@ -291,7 +291,7 @@ void ggml_cuda_op_rope(ggml_backend_cuda_context & ctx, ggml_tensor * dst) {
|
|||
freq_factors = (const float *) src2->data;
|
||||
}
|
||||
} else {
|
||||
GGML_ASSERT(src2 == nullptr && "TODO: freq_factors not implemented for mode 1");
|
||||
GGML_ASSERT(src2 == nullptr && "TODO: freq_factors not implemented for !is_neox");
|
||||
}
|
||||
|
||||
rope_corr_dims corr_dims;
|
||||
|
|
14
ggml-metal.m
14
ggml-metal.m
|
@ -2263,18 +2263,8 @@ static enum ggml_status ggml_metal_graph_compute(
|
|||
|
||||
GGML_ASSERT(!is_glm && "GLM RoPE not implemented in Metal");
|
||||
|
||||
if (is_neox) {
|
||||
// TODO: move these asserts to ggml.c
|
||||
GGML_ASSERT(src1->type == GGML_TYPE_I32);
|
||||
GGML_ASSERT(src1->ne[0] == ne2);
|
||||
|
||||
if (id_src2 != nil) {
|
||||
// TODO: move these asserts to ggml.c
|
||||
GGML_ASSERT(src2->type == GGML_TYPE_F32);
|
||||
GGML_ASSERT(src2->ne[0] >= n_dims / 2);
|
||||
}
|
||||
} else {
|
||||
GGML_ASSERT(id_src2 == nil && "TODO: freq_factors not implemented for mode 1");
|
||||
if (!is_neox) {
|
||||
GGML_ASSERT(id_src2 == nil && "TODO: freq_factors not implemented for !is_neox");
|
||||
}
|
||||
|
||||
id<MTLComputePipelineState> pipeline = nil;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue