Skip to content
This repository has been archived by the owner on Aug 30, 2024. It is now read-only.

Commit

Permalink
fix clang-tidy
Browse files Browse the repository at this point in the history
  • Loading branch information
luoyu-intel committed Jun 21, 2024
1 parent cf1504a commit afac900
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion neural_speed/application/pybind_gptj.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ void* init_gptj(int seed, int n_predict, int n_batch, int top_k, float top_p, fl
model_init_backend();
model_context* ctx;
g_ctx = &ctx;
ctx = model_init_from_gpt_params(params);
ctx = model_init_from_gpt_params(params, nullptr);
if (ctx == nullptr) {
fprintf(stderr, "%s: error: unable to load model\n", __func__);
return nullptr;
Expand Down
2 changes: 1 addition & 1 deletion neural_speed/models/model_utils/model_utils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ static bool kv_cache_device_init(const struct model_hparams& hparams, struct mod
#ifdef NS_SYCL
cache.device_buf = bestla_device_malloc(cache.device_size, device_queue);
#else
cache.device_buf = NULL;
cache.device_buf = nullptr;
#endif
cache.seq_cells.resize(batch_size * beam_size);
for (int i = 0; i < cache.seq_cells.size(); ++i) {
Expand Down

0 comments on commit afac900

Please sign in to comment.