pub fn var_tensors_by_name<'e: 'name + 'g, 'name>(
        &'g self,
        ns: &'name VariableNamespace<'e, 'name, F>,
    ) -> impl Iterator<Item = (&'name str, Tensor<'g, F>)> {
        ns.env().name_to_id.iter().filter_map(move |ent| {
            // filter out other namespaces
            if &ent.0.namespace_id == ns.name() {
                Some((ent.0.variable_name.deref(), self.variable_by_id(*ent.1)))
            } else {
                None
            }
        })
    }
/// Get tensors and their variable names in the specified namespace.
///
/// See `VariableEnvironment` for the usages.
Get tensors and their variable names in the specified namespace.
See `VariableEnvironment` for the usages.
Get tensors and their variable names in the specified namespace . See ` VariableEnvironment ` for the usages .
pub fn var_tensors_by_name<'e: 'name + 'g, 'name>(
        &'g self,
        ns: &'name VariableNamespace<'e, 'name, F>,
    ) -> impl Iterator<Item = (&'name str, Tensor<'g, F>)> {
        ns.env().name_to_id.iter().filter_map(move |ent| {
            // filter out other namespaces
            if &ent.0.namespace_id == ns.name() {
                Some((ent.0.variable_name.deref(), self.variable_by_id(*ent.1)))
            } else {
                None
            }
        })
    }
pub fn var_tensors_by_name < ' e : ' name + ' g , ' name > ( & ' g self , ns : & ' name VariableNamespace < ' e , ' name , F > , ) -> impl Iterator < Item = ( & ' name str , Tensor < ' g , F > ) > { ns . env ( ) . name_to_id . iter ( ) . filter_map ( move | ent | { // filter out other namespaces if & ent . 0 . namespace_id == ns . name ( ) { Some ( ( ent . 0 . variable_name . deref ( ) , self . variable_by_id ( * ent . 1 ) ) ) } else { None } } ) }
Get tensors and their variable names in the specified namespace.
Get tensors and their variable names in the specified namespace .
&'g self
ns
&'name VariableNamespace<'e, 'name, F>
&'g self
ns
&'name VariableNamespace<'e, 'name, F>