class_docstr: Base class for LIT generators.
class_docstr_tok: ["Base","class","for","LIT","generators","."]
docstr: Run generation on a set of inputs.
  
  Args:
    inputs: sequence of inputs, following model.input_spec()
    model: optional model to use to generate new examples.
    dataset: optional dataset which the current examples belong to.
    config: optional runtime config.
  
  Returns:
    list of list of new generated inputs, following model.input_spec()
docstr_tok: ["Run","generation","on","a","set","of","inputs",".","Args",":","inputs",":","sequence","of","inputs",",","following","model.input_spec","(",")","model",":","optional","model","to","use","to","generate","new","examples",".","dataset",":","optional","dataset","which","the","current","examples","belong","to",".","config",":","optional","runtime","config",".","Returns",":","list","of","list","of","new","generated","inputs",",","following","model.input_spec","(",")"]
code: def generate_all(
      self,
      inputs: list[JsonDict],
      model: lit_model.Model,
      dataset: lit_dataset.Dataset,
      config: Optional[JsonDict] = None,
  ) -> list[list[JsonDict]]:
      """Run generation on a set of inputs.
  
      Args:
        inputs: sequence of inputs, following model.input_spec()
        model: optional model to use to generate new examples.
        dataset: optional dataset which the current examples belong to.
        config: optional runtime config.
  
      Returns:
        list of list of new generated inputs, following model.input_spec()
      """
      output = []
      for ex in inputs:
          output.append(self.generate(ex, model, dataset, config))
      return output
  
imports: import abc
  from collections.abc import Sequence
  import inspect
  from typing import Any, Optional
  from lit_nlp.api import dataset
  from lit_nlp.api import model
  from lit_nlp.api import types
label_desc: Use image node_id 2 for calling the Generator obj's underlying member method code with example usage: obj.generate_all(inputs, model, dataset, config) and returns: output