use super::{Backend, Interpreter, TaggedTensor, Value};
use crate::abstract_interpreter::parameters;
use crate::path::Path;
use std::collections::HashMap;
pub type Parameters<B> = parameters::Parameters<Interpreter<B>>;
impl<B: Backend> From<HashMap<Path, TaggedTensor<B>>> for Parameters<B> {
fn from(x: HashMap<Path, TaggedTensor<B>>) -> Self {
let x = x.into_iter().map(|(k, v)| (k, Value::Tensor(v))).collect();
parameters::Parameters(x)
}
}