File tree 1 file changed +1
-6
lines changed 1 file changed +1
-6
lines changed Original file line number Diff line number Diff line change @@ -4982,11 +4982,6 @@ enum ggml_unary_op ggml_get_unary_op(const struct ggml_tensor * tensor) {
4982
4982
return (enum ggml_unary_op) ggml_get_op_params_i32(tensor, 0);
4983
4983
}
4984
4984
4985
- static void ggml_set_unary_op(struct ggml_tensor * tensor, enum ggml_unary_op op) {
4986
- GGML_ASSERT(tensor->op = GGML_OP_UNARY);
4987
- ggml_set_op_params_i32(tensor, 0, (int32_t) op);
4988
- }
4989
-
4990
4985
const char * ggml_get_name(const struct ggml_tensor * tensor) {
4991
4986
return tensor->name;
4992
4987
}
@@ -7226,7 +7221,7 @@ static struct ggml_tensor * ggml_unary_impl(
7226
7221
7227
7222
struct ggml_tensor * result = inplace ? ggml_view_tensor(ctx, a) : ggml_dup_tensor(ctx, a);
7228
7223
7229
- ggml_set_unary_op (result, op);
7224
+ ggml_set_op_params_i32 (result, 0, (int32_t) op);
7230
7225
7231
7226
result->op = GGML_OP_UNARY;
7232
7227
result->grad = is_node ? ggml_dup_tensor(ctx, result) : NULL;
You can’t perform that action at this time.
0 commit comments