fix(jepa-vision-bridge): add as_any/as_any_mut to RtxVisionJepaEncoder
CI / Build (macos-latest) (push) Failing after 38s
Documentation / Build API Documentation (push) Failing after 21s
CI / Build CPU-Only (Explicit) (push) Failing after 29s
Performance Benchmarks / Run Benchmarks (push) Successful in 1m57s
CI / Format Check (push) Failing after 22s
CI / Clippy Check (push) Failing after 48s
CI / Build (ubuntu-latest) (push) Failing after 47s
CI / Test (macos-latest) (push) Has been skipped
CI / Test (ubuntu-latest) (push) Has been skipped
CI / Python Bindings (maturin) (macos-latest) (push) Has been skipped
CI / Python Bindings (maturin) (ubuntu-latest) (push) Has been skipped
CI / WASM Build + Size Check (push) Has been skipped
CI / Distributed Training Tests (push) Has been skipped
Documentation / Build User Guide (push) Successful in 7s
CI / CI Success (push) Failing after 1s

Required by JepaEncoder trait update in batch29 (as_any for downcasting).

Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
This commit is contained in:
Omar Sobh
2026-06-27 16:06:34 +00:00
co-authored by Claude Sonnet 4.6
parent 37db99107f
commit 41a844864f
@@ -52,6 +52,9 @@ impl RtxVisionJepaEncoder {
#[cfg(feature = "vision-bridge")] #[cfg(feature = "vision-bridge")]
impl JepaEncoder for RtxVisionJepaEncoder { impl JepaEncoder for RtxVisionJepaEncoder {
fn as_any(&self) -> &dyn std::any::Any { self }
fn as_any_mut(&mut self) -> &mut dyn std::any::Any { self }
fn encode(&self, patch_indices: &[usize]) -> Vec<f32> { fn encode(&self, patch_indices: &[usize]) -> Vec<f32> {
// Returns zeros with correct shape [n_patches, embed_dim]. // Returns zeros with correct shape [n_patches, embed_dim].
// Real values come when ViT::encode_patch_indices uses GPU tensor ops. // Real values come when ViT::encode_patch_indices uses GPU tensor ops.