Ensures backend-agnostic tensor mathematics using Keras 3 operations for BayesFlow extensions and custom layers.
The BayesFlow Keras Ops skill provides Claude with the specialized knowledge required to write portable, multi-backend tensor math code within the BayesFlow ecosystem. By enforcing the use of keras.ops over backend-specific libraries like PyTorch, JAX, or NumPy, it ensures that loss functions, custom layers, and network forward passes remain compatible across different computing environments. This skill is essential for developers building differentiable probabilistic models that must remain performant and portable, offering specific implementation patterns for common BayesFlow tasks such as detached sampling, chunked log-probability calculations, and straight-through estimators.