class_docstr: Polyphony RNN generation code as a SequenceGenerator interface.
docstr: Creates a PolyphonyRnnSequenceGenerator.
  
  Args:
    model: Instance of PolyphonyRnnModel.
    details: A generator_pb2.GeneratorDetails for this generator.
    steps_per_quarter: What precision to use when quantizing the sequence. How
        many steps per quarter note.
    checkpoint: Where to search for the most recent model checkpoint. Mutually
        exclusive with `bundle`.
    bundle: A GeneratorBundle object that includes both the model checkpoint
        and metagraph. Mutually exclusive with `checkpoint`.
docstr_tok: ["Creates","a","PolyphonyRnnSequenceGenerator",".","Args",":","model",":","Instance","of","PolyphonyRnnModel",".","details",":","A","generator_pb2.GeneratorDetails","for","this","generator",".","steps_per_quarter",":","What","precision","to","use","when","quantizing","the","sequence",".","How","many","steps","per","quarter","note",".","checkpoint",":","Where","to","search","for","the","most","recent","model","checkpoint",".","Mutually","exclusive","with","`","bundle","`",".","bundle",":","A","GeneratorBundle","object","that","includes","both","the","model","checkpoint","and","metagraph",".","Mutually","exclusive","with","`","checkpoint","`","."]
code: def __init__(
      self,
      model,
      details,
      steps_per_quarter=4,
      checkpoint=None,
      bundle=None,
  ):
      """Creates a PolyphonyRnnSequenceGenerator.
  
      Args:
        model: Instance of PolyphonyRnnModel.
        details: A generator_pb2.GeneratorDetails for this generator.
        steps_per_quarter: What precision to use when quantizing the sequence. How
            many steps per quarter note.
        checkpoint: Where to search for the most recent model checkpoint. Mutually
            exclusive with `bundle`.
        bundle: A GeneratorBundle object that includes both the model checkpoint
            and metagraph. Mutually exclusive with `checkpoint`.
      """
      super(PolyphonyRnnSequenceGenerator, self).__init__(
          model, details, checkpoint, bundle
      )
      self.steps_per_quarter = steps_per_quarter
  
file_path: magenta/magenta/models/polyphony_rnn/polyphony_sequence_generator.py
imports: import copy
  import functools
  from magenta.models.polyphony_rnn import polyphony_lib
  from magenta.models.polyphony_rnn import polyphony_model
  from magenta.models.polyphony_rnn.polyphony_lib import PolyphonicEvent
  from magenta.models.shared import sequence_generator
  import note_seq
  import tensorflow.compat.v1
label_desc: Use image node_id 1 to create a new PolyphonyRnnSequenceGenerator object from inherited base classes: sequence_generator with example: obj = PolyphonyRnnSequenceGenerator(model, details, steps_per_quarter, checkpoint, bundle)