35377d296d2b483a848758ded381cd50f26e98fd,magenta/models/performance_rnn/performance_rnn_generate.py,,run_with_flags,#Any#,153

Before Change



  if (FLAGS.notes_per_second is not None and
      not generator.note_density_conditioning):
    tf.logging.warning(
        "Notes per second requested via flag, but generator is not set up to "
        "condition on note density. Requested note density will be ignored: %s",
        FLAGS.notes_per_second)

  if (FLAGS.pitch_class_histogram is not None and
      not generator.pitch_histogram_conditioning):
    tf.logging.warning(

After Change


        generate_section.start_time, generate_end_time)
    return

  for control_cls in magenta.music.all_performance_control_signals:
    if FLAGS[control_cls.name].value is not None and (
        generator.control_signals is None or not any(
            control.name == control_cls.name
            for control in generator.control_signals)):
      tf.logging.warning(
          "Control signal requested via flag, but generator is not set up to "
          "condition on this control signal. Request will be ignored: %s = %s",
          control_cls.name, FLAGS[control_cls.name].value)

  if (FLAGS.disable_conditioning is not None and
      not generator.optional_conditioning):
    tf.logging.warning(
        "Disable conditioning flag set, but generator is not set up for "
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: tensorflow/magenta
Commit Name: 35377d296d2b483a848758ded381cd50f26e98fd
Time: 2018-05-01
Author: iansimon@users.noreply.github.com
File Name: magenta/models/performance_rnn/performance_rnn_generate.py
Class Name:
Method Name: run_with_flags


Project Name: aws/sagemaker-python-sdk
Commit Name: 7d2aae85ce8dddb4341ff564e156602b128aaf86
Time: 2019-12-03
Author: 52252844+aws-patlin@users.noreply.github.com
File Name: src/sagemaker/amazon/amazon_estimator.py
Class Name:
Method Name: get_image_uri


Project Name: aws/sagemaker-python-sdk
Commit Name: 762b509f711daf4d0d7b759626f614fcf618b74e
Time: 2020-05-21
Author: kimedw@amazon.com
File Name: src/sagemaker/amazon/amazon_estimator.py
Class Name:
Method Name: get_image_uri