Struct dfdx::nn::tensor_collection::ScalarOptions
source · #[non_exhaustive]pub struct ScalarOptions<N: NumCast> {
pub default: N,
}
Expand description
Options to change behavior of ModuleVisitor
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.default: N
The default value for this parameter
Implementations§
source§impl<N: NumCast> ScalarOptions<N>
impl<N: NumCast> ScalarOptions<N>
pub fn from_default(default: N) -> Self
Auto Trait Implementations§
impl<N> RefUnwindSafe for ScalarOptions<N>where N: RefUnwindSafe,
impl<N> Send for ScalarOptions<N>where N: Send,
impl<N> Sync for ScalarOptions<N>where N: Sync,
impl<N> Unpin for ScalarOptions<N>where N: Unpin,
impl<N> UnwindSafe for ScalarOptions<N>where N: UnwindSafe,
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more