concision_ext/lib.rs
1/*
2 Appellation: concision-ext <library>
3 Contrib: @FL03
4*/
5//! An extension of the [`concision`](https://crates.io/crates/concision) library, focusing on
6//! providing additional layers and other non-essential features for building more complex
7//! neural networks and machine learning models.
8//!
9//! ## Features
10//!
11//! - **attention**: Enables various attention mechanisms from scaled dot-product and
12//! multi-headed attention to FFT-based attention.
13//!
14#![allow(clippy::module_inception, clippy::needless_doctest_main)]
15#![cfg_attr(not(feature = "std"), no_std)]
16
17#[cfg(feature = "alloc")]
18extern crate alloc;
19
20extern crate concision as cnc;
21
22#[cfg(feature = "attention")]
23pub use self::attention::prelude::*;
24
25#[cfg(feature = "attention")]
26pub mod attention;
27
28// pub mod simple;
29
30pub mod prelude {
31 #[cfg(feature = "attention")]
32 pub use crate::attention::prelude::*;
33}