pub type DynValue = Value<DynValueTypeMarker>;
Expand description
A dynamic value, which could be a Tensor
, Sequence
, or Map
.
To attempt to convert a dynamic value to a strongly typed value, use DynValue::downcast
. You can also attempt to
extract data from dynamic values directly using try_extract_*
methods; see Value
for more information.
Aliased Type§
struct DynValue { /* private fields */ }
Trait Implementations§
source§impl From<Value<DynTensorValueType>> for DynValue
impl From<Value<DynTensorValueType>> for DynValue
source§fn from(value: Value<DynTensorValueType>) -> Self
fn from(value: Value<DynTensorValueType>) -> Self
Converts to this type from the input type.
source§impl<'i, 'v, T: IntoTensorElementType + Debug + Clone + 'static, D: Dimension + 'static> TryFrom<&'i ArrayBase<CowRepr<'v, T>, D>> for DynValuewhere
'i: 'v,
Available on crate feature ndarray
only.
impl<'i, 'v, T: IntoTensorElementType + Debug + Clone + 'static, D: Dimension + 'static> TryFrom<&'i ArrayBase<CowRepr<'v, T>, D>> for DynValuewhere
'i: 'v,
Available on crate feature
ndarray
only.source§impl<T: IntoTensorElementType + Debug + Clone + 'static, D: Dimension + 'static> TryFrom<&mut ArrayBase<OwnedArcRepr<T>, D>> for DynValue
Available on crate feature ndarray
only.
impl<T: IntoTensorElementType + Debug + Clone + 'static, D: Dimension + 'static> TryFrom<&mut ArrayBase<OwnedArcRepr<T>, D>> for DynValue
Available on crate feature
ndarray
only.source§impl<T: IntoTensorElementType + Debug + Clone + 'static, I: ToDimensions> TryFrom<(I, &[T])> for DynValue
impl<T: IntoTensorElementType + Debug + Clone + 'static, I: ToDimensions> TryFrom<(I, &[T])> for DynValue
source§impl<T: IntoTensorElementType + Debug + Clone + 'static, I: ToDimensions> TryFrom<(I, Arc<Box<[T]>>)> for DynValue
impl<T: IntoTensorElementType + Debug + Clone + 'static, I: ToDimensions> TryFrom<(I, Arc<Box<[T]>>)> for DynValue
source§impl<T: IntoTensorElementType + Debug + Clone + 'static, I: ToDimensions> TryFrom<(I, Box<[T]>)> for DynValue
impl<T: IntoTensorElementType + Debug + Clone + 'static, I: ToDimensions> TryFrom<(I, Box<[T]>)> for DynValue
source§impl<T: IntoTensorElementType + Debug + Clone + 'static, I: ToDimensions> TryFrom<(I, Vec<T>)> for DynValue
impl<T: IntoTensorElementType + Debug + Clone + 'static, I: ToDimensions> TryFrom<(I, Vec<T>)> for DynValue
source§impl<T: IntoTensorElementType + Debug + Clone + 'static, D: Dimension + 'static> TryFrom<ArrayBase<OwnedRepr<T>, D>> for DynValue
Available on crate feature ndarray
only.
impl<T: IntoTensorElementType + Debug + Clone + 'static, D: Dimension + 'static> TryFrom<ArrayBase<OwnedRepr<T>, D>> for DynValue
Available on crate feature
ndarray
only.