We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0b3fe3f commit 4181e5fCopy full SHA for 4181e5f
pgml-extension/src/api.rs
@@ -602,6 +602,7 @@ pub fn embed_batch(
602
/// ```sql
603
/// SELECT pgml.clear_gpu_cache(memory_usage => 0.5);
604
/// ```
605
+#[cfg(all(feature = "python", not(feature = "use_as_lib")))]
606
#[pg_extern(immutable, parallel_safe, name = "clear_gpu_cache")]
607
pub fn clear_gpu_cache(memory_usage: default!(Option<f32>, "NULL")) -> bool {
608
match crate::bindings::transformers::clear_gpu_cache(memory_usage) {
0 commit comments