|
@@ -25,6 +25,7 @@ static bool ggml_is_view(const struct ggml_tensor * t) {
|
|
|
// ops that return true for this function must not use restrict pointers for their backend implementations
|
|
// ops that return true for this function must not use restrict pointers for their backend implementations
|
|
|
bool ggml_op_can_inplace(enum ggml_op op) {
|
|
bool ggml_op_can_inplace(enum ggml_op op) {
|
|
|
switch (op) {
|
|
switch (op) {
|
|
|
|
|
+ case GGML_OP_FILL:
|
|
|
case GGML_OP_SCALE:
|
|
case GGML_OP_SCALE:
|
|
|
case GGML_OP_DIAG_MASK_ZERO:
|
|
case GGML_OP_DIAG_MASK_ZERO:
|
|
|
case GGML_OP_DIAG_MASK_INF:
|
|
case GGML_OP_DIAG_MASK_INF:
|