class_docstr: Conveniently edit the parameters of a lucid model.
  
  Example usage:
  
    model = models.InceptionV1()
    param = ParameterEditor(model.graph_def)
    # Flip weights of first channel of conv2d0
    param["conv2d0_w", :, :, :, 0] *= -1
class_docstr_tok: ["Conveniently","edit","the","parameters","of","a","lucid","model",".","Example","usage",":","model","=","models.InceptionV1","(",")","param","=","ParameterEditor","(","model.graph_def",")","#","Flip","weights","of","first","channel","of","conv2d0","param","[","``","conv2d0_w","''",",",":",",",":",",",":",",","0","]","*","=","-1"]
code: def __getitem__(self, key):
      name = key[0] if isinstance(key, tuple) else key
      tensor = self.nodes[name].attr["value"].tensor
      shape = [int(d.size) for d in tensor.tensor_shape.dim]
      array = (
          np.frombuffer(tensor.tensor_content, dtype="float32")
          .reshape(shape)
          .copy()
      )
      return array[key[1:]] if isinstance(key, tuple) else array
  
imports: import numpy
  import tensorflow
label_desc: Use image node_id 2 for calling the ParameterEditor obj's underlying member method code with example usage: obj.__getitem__(key) and returns: unknown