class_docstr: A class that provides a way to access the submodules and parameters/buffers of a module.
  
  It provides caching mechanism to speed up submodule lookups.
  This is useful for functional programming to manipulate the module state.
class_docstr_tok: ["A","class","that","provides","a","way","to","access","the","submodules","and","parameters\/buffers","of","a","module",".","It","provides","caching","mechanism","to","speed","up","submodule","lookups",".","This","is","useful","for","functional","programming","to","manipulate","the","module","state","."]
docstr: Set the attributes specified by the given paths to values.
  
  For example, to set the attributes mod.layer1.conv1.weight and
  mod.layer1.conv1.bias, use accessor.set_tensors(["layer1.conv1.weight",
  "layer1.conv1.bias"], [weight, bias])
docstr_tok: ["Set","the","attributes","specified","by","the","given","paths","to","values",".","For","example",",","to","set","the","attributes","mod.layer1.conv1.weight","and","mod.layer1.conv1.bias",",","use","accessor.set_tensors","(","[","``","layer1.conv1.weight","''",",","''","layer1.conv1.bias","''","]",",","[","weight",",","bias","]",")"]
code: def set_tensors(
      self, names: Iterable[str], values: Iterable[torch.Tensor]
  ) -> None:
      """
      Set the attributes specified by the given paths to values.
  
      For example, to set the attributes mod.layer1.conv1.weight and
      mod.layer1.conv1.bias, use accessor.set_tensors(["layer1.conv1.weight",
      "layer1.conv1.bias"], [weight, bias])
      """
      if not isinstance(names, (list, tuple)):
          names = list(names)
      if not isinstance(values, (list, tuple)):
          values = list(values)
      assert len(names) == len(
          values
      ), "names and values must have the same length"
  
      for name, value in zip(names, values):
          self.set_tensor(name, value)
  
imports: from typing import Dict, Iterable, List, Tuple
  import torch
label_desc: Use image node_id 9 for calling the NamedMemberAccessor obj's underlying member method code with example usage: obj.set_tensors(names, values) without return types