Skip to content

Commit 4181e5f

Browse files
authored
remove clear_gpu_cache for use_lib feature (#899)
1 parent 0b3fe3f commit 4181e5f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

pgml-extension/src/api.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -602,6 +602,7 @@ pub fn embed_batch(
602602
/// ```sql
603603
/// SELECT pgml.clear_gpu_cache(memory_usage => 0.5);
604604
/// ```
605+
#[cfg(all(feature = "python", not(feature = "use_as_lib")))]
605606
#[pg_extern(immutable, parallel_safe, name = "clear_gpu_cache")]
606607
pub fn clear_gpu_cache(memory_usage: default!(Option<f32>, "NULL")) -> bool {
607608
match crate::bindings::transformers::clear_gpu_cache(memory_usage) {

0 commit comments

Comments
 (0)