Skip to content

Commit 25f653a

Browse files
committed
revert unused code
1 parent 6aec435 commit 25f653a

File tree

2 files changed

+11
-16
lines changed

2 files changed

+11
-16
lines changed

ggml/include/ggml.h

-15
Original file line numberDiff line numberDiff line change
@@ -2425,21 +2425,6 @@ extern "C" {
24252425

24262426
GGML_API ggml_type_traits_t ggml_internal_get_type_traits(enum ggml_type type);
24272427

2428-
struct ggml_compute_params {
2429-
// ith = thread index, nth = number of threads
2430-
int ith, nth;
2431-
2432-
// work buffer for all threads
2433-
size_t wsize;
2434-
void * wdata;
2435-
2436-
struct ggml_compute_state_shared * shared;
2437-
};
2438-
2439-
void ggml_compute_forward_rope(
2440-
const struct ggml_compute_params * params,
2441-
struct ggml_tensor * dst);
2442-
24432428
#ifdef __cplusplus
24442429
}
24452430
#endif

ggml/src/ggml.c

+11-1
Original file line numberDiff line numberDiff line change
@@ -1754,8 +1754,18 @@ struct ggml_compute_state {
17541754
struct ggml_compute_state_shared * shared;
17551755
};
17561756

1757+
struct ggml_compute_params {
1758+
// ith = thread index, nth = number of threads
1759+
int ith, nth;
17571760

17581761

1762+
// work buffer for all threads
1763+
size_t wsize;
1764+
void * wdata;
1765+
1766+
struct ggml_compute_state_shared * shared;
1767+
};
1768+
17591769
//
17601770
// fundamental operations
17611771
//
@@ -14046,7 +14056,7 @@ static void ggml_compute_forward_rope_f16(
1404614056
}
1404714057
}
1404814058

14049-
void ggml_compute_forward_rope(
14059+
static void ggml_compute_forward_rope(
1405014060
const struct ggml_compute_params * params,
1405114061
struct ggml_tensor * dst) {
1405214062

0 commit comments

Comments
 (0)