Skip to content

Commit e46c9f8

Browse files
committed
vulkan : fix support conditions for F16
ggml-ci
1 parent 95e1e11 commit e46c9f8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ggml/src/ggml-vulkan/ggml-vulkan.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8450,7 +8450,7 @@ static bool ggml_backend_vk_device_supports_op(ggml_backend_dev_t dev, const ggm
84508450
case GGML_UNARY_OP_RELU:
84518451
case GGML_UNARY_OP_TANH:
84528452
case GGML_UNARY_OP_SIGMOID:
8453-
return ggml_is_contiguous(op->src[0]);
8453+
return ggml_is_contiguous(op->src[0]) && op->src[0]->type == GGML_TYPE_F32;
84548454
default:
84558455
return false;
84568456
}

0 commit comments

Comments
 (0)