Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions pgml-extension/src/api.rs
Original file line number Diff line number Diff line change
Expand Up @@ -602,6 +602,7 @@ pub fn embed_batch(
/// ```sql
/// SELECT pgml.clear_gpu_cache(memory_usage => 0.5);
/// ```
#[cfg(all(feature = "python", not(feature = "use_as_lib")))]
#[pg_extern(immutable, parallel_safe, name = "clear_gpu_cache")]
pub fn clear_gpu_cache(memory_usage: default!(Option<f32>, "NULL")) -> bool {
match crate::bindings::transformers::clear_gpu_cache(memory_usage) {
Expand Down