Skip to content

Commit

Permalink
cuda : simplify expression
Browse files Browse the repository at this point in the history
Co-authored-by: slaren <[email protected]>
  • Loading branch information
ggerganov and slaren committed Jan 3, 2024
1 parent a1d98e6 commit e1928a3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
2 changes: 1 addition & 1 deletion extra/sync-ggml.last
Original file line number Diff line number Diff line change
@@ -1 +1 @@
965137f49917768959679a9e860dc414e170fd55
3fd01e00e40583ccd4b393a7c6502d6a4455a1d5
5 changes: 1 addition & 4 deletions ggml-cuda.cu
Original file line number Diff line number Diff line change
Expand Up @@ -10044,10 +10044,7 @@ static bool ggml_backend_cuda_supports_op(ggml_backend_t backend, const ggml_ten
case GGML_OP_CONCAT:
{
ggml_type src0_type = op->src[0]->type;
if (src0_type != GGML_TYPE_I32 && src0_type != GGML_TYPE_I16) {
return true;
}
return false;
return src0_type != GGML_TYPE_I32 && src0_type != GGML_TYPE_I16;
} break;
case GGML_OP_NONE:
case GGML_OP_RESHAPE:
Expand Down

0 comments on commit e1928a3

Please sign in to comment.