mirror of
https://github.com/ggerganov/whisper.cpp.git
synced 2025-08-18 22:45:45 +02:00
CUDA: fix bad asserts for partial offload (llama/13337)
This commit is contained in:
committed by
Georgi Gerganov
parent
be55e25cac
commit
f9f78a773f
@@ -1299,6 +1299,10 @@ bool ggml_is_contiguous_2(const struct ggml_tensor * tensor) {
|
||||
return ggml_is_contiguous_n(tensor, 2);
|
||||
}
|
||||
|
||||
bool ggml_is_contiguously_allocated(const struct ggml_tensor * tensor) {
|
||||
return ggml_nbytes(tensor) == ggml_nelements(tensor) * ggml_type_size(tensor->type)/ggml_blck_size(tensor->type);
|
||||
}
|
||||
|
||||
bool ggml_is_permuted(const struct ggml_tensor * tensor) {
|
||||
static_assert(GGML_MAX_DIMS == 4, "GGML_MAX_DIMS is not 4 - update this function");
|
||||
|
||||
|
Reference in New Issue
Block a user