Skip to main content

ParameterValue

Trait ParameterValue 

pub trait ParameterValue:
    Sealed
    + Clone
    + Debug
    + Send { }
Expand description

A value that can be identified and traversed inside a Param.

§Notes

This trait is intentionally sealed to keep the set of parameters closed.

Although exposed publicly, parameter values are not meant to be extensible. The closed set includes device-backed values such as Tensor and device-independent control values such as Flag.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

§

impl ParameterValue for Flag

§

impl<const D: usize> ParameterValue for Tensor<D, Bool>

§

impl<const D: usize> ParameterValue for Tensor<D, Int>

§

impl<const D: usize> ParameterValue for Tensor<D>