class_docstr: Abstract class for generators.
class_docstr_tok: ["Abstract","class","for","generators","."]
docstr: Generates a sequence from the model based on sequence and options.
  
  Also initializes the TF graph if not yet initialized.
  
  Args:
    input_sequence: An input NoteSequence to base the generation on.
    generator_options: A GeneratorOptions proto with options to use for
        generation.
  
  Returns:
    The generated NoteSequence proto.
docstr_tok: ["Generates","a","sequence","from","the","model","based","on","sequence","and","options",".","Also","initializes","the","TF","graph","if","not","yet","initialized",".","Args",":","input_sequence",":","An","input","NoteSequence","to","base","the","generation","on",".","generator_options",":","A","GeneratorOptions","proto","with","options","to","use","for","generation",".","Returns",":","The","generated","NoteSequence","proto","."]
code: def generate(self, input_sequence, generator_options):
      """Generates a sequence from the model based on sequence and options.
  
      Also initializes the TF graph if not yet initialized.
  
      Args:
        input_sequence: An input NoteSequence to base the generation on.
        generator_options: A GeneratorOptions proto with options to use for
            generation.
  
      Returns:
        The generated NoteSequence proto.
      """
      self.initialize()
      return self._generate(input_sequence, generator_options)
  
imports: import abc
  import os
  import tempfile
  from note_seq.protobuf import generator_pb2
  import tensorflow.compat.v1
label_desc: Use image node_id 9 for calling the BaseSequenceGenerator obj's underlying member method code with example usage: obj.generate(input_sequence, generator_options) and returns: self