Skip to content

Commit

Permalink
Apply suggestions
Browse files Browse the repository at this point in the history
  • Loading branch information
saharNooby committed Jun 13, 2023
1 parent 0b5ab44 commit 023eda1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tests/test_context_cloning.c
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ int main() {

rwkv_eval(ctx, prompt[0], NULL, state, logits);

for (int i = 1; i < prompt[i] != 0; i++) {
for (int i = 1; prompt[i] != 0; i++) {
rwkv_eval(ctx, prompt[i], state, state, logits);
}

Expand Down
2 changes: 1 addition & 1 deletion tests/test_tiny_rwkv.c
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ void test_model(const char * model_path, const float * expected_logits, const fl
ASSERT(rwkv_gpu_offload_layers(model, N_GPU_LAYERS), "Unexpected error %d", rwkv_get_last_error(model));
#endif

size_t n_vocab = rwkv_get_logits_len(model);
const size_t n_vocab = rwkv_get_logits_len(model);

ASSERT(n_vocab == N_VOCAB, "Unexpected n_vocab in the model");

Expand Down

0 comments on commit 023eda1

Please sign in to comment.