Skip to content

Commit

Permalink
Fix linux build
Browse files Browse the repository at this point in the history
Of course we forgot why we did this, and broke the build again, in
the exact same way, a second time.
  • Loading branch information
LoganDark committed Jun 20, 2023
1 parent f243f94 commit 4c7c74c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rwkv.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1397,7 +1397,7 @@ struct rwkv_context * rwkv_new_context_impl(std::shared_ptr<struct rwkv_instance
/* att_pp */ future_input.subview(future_ctx, n_embed); future_output.subview(future_ctx, n_embed);
}

struct rwkv_ggml_context ctx = future_ctx;
struct rwkv_ggml_context ctx(future_ctx);
RWKV_ASSERT_NULL_MSG(RWKV_ERROR_CTX | RWKV_ERROR_ALLOC, ctx.ctx, "Failed to allocate model context");

struct ggml_tensor * input = ggml_new_tensor_1d(ctx.ctx, GGML_TYPE_F32, n_embed * 5 * n_layer);
Expand Down

0 comments on commit 4c7c74c

Please sign in to comment.