remove busy loop that was used as sleep for slower sinus wave generation
This commit is contained in:
parent
4997bc5819
commit
f5301061b6
1 changed files with 0 additions and 7 deletions
|
@ -1302,7 +1302,6 @@ int main(int argc, char ** argv) {
|
||||||
print_token(ggml_get_i32_1d(tokens_input, i), n_vocab);
|
print_token(ggml_get_i32_1d(tokens_input, i), n_vocab);
|
||||||
}
|
}
|
||||||
printf("---\n");
|
printf("---\n");
|
||||||
int important_sum = 0;
|
|
||||||
for (int i=0; i<n_gen; ++i) {
|
for (int i=0; i<n_gen; ++i) {
|
||||||
struct ggml_init_params params = {
|
struct ggml_init_params params = {
|
||||||
/*.mem_size =*/ compute_size,
|
/*.mem_size =*/ compute_size,
|
||||||
|
@ -1340,15 +1339,9 @@ int main(int argc, char ** argv) {
|
||||||
// print_token(ggml_get_i32_1d(tokens_input, i), model.hparams.n_vocab);
|
// print_token(ggml_get_i32_1d(tokens_input, i), model.hparams.n_vocab);
|
||||||
// }
|
// }
|
||||||
// printf("--\n");
|
// printf("--\n");
|
||||||
for (int k=0; k<1000000; ++k) {
|
|
||||||
for (int j=0; j<30; ++j) {
|
|
||||||
important_sum += (k+j) / MAX(1,i);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
ggml_free(ctx0);
|
ggml_free(ctx0);
|
||||||
}
|
}
|
||||||
printf("important (dont optimize it away, compiler!) : %d\n", important_sum);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
print_matrix(model.tok_embeddings);
|
print_matrix(model.tok_embeddings);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue