Skip to content

Commit

Permalink
Remove unused comments related to Python 2 compatibility.
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 442134907
  • Loading branch information
yilei authored and Magenta Team committed Apr 16, 2022
1 parent 70a5a74 commit 77ed668
Show file tree
Hide file tree
Showing 25 changed files with 0 additions and 25 deletions.
1 change: 0 additions & 1 deletion magenta/contrib/cudnn_rnn.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
# See the License for the specific language governing permissions and
# limitations under the License.

# Lint as: python3
"""Forked classes and functions from `tf.contrib.cudnn_rnn`."""
from magenta.contrib import rnn as contrib_rnn

Expand Down
1 change: 0 additions & 1 deletion magenta/contrib/rnn.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
# See the License for the specific language governing permissions and
# limitations under the License.

# Lint as: python3
"""Forked classes and functions from `tf.contrib.rnn`."""
import tensorflow.compat.v1 as tf
import tf_slim
Expand Down
1 change: 0 additions & 1 deletion magenta/contrib/seq2seq.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
# See the License for the specific language governing permissions and
# limitations under the License.

# Lint as: python3
"""Forked classes and functions from `tf.contrib.seq2seq`."""

import abc
Expand Down
1 change: 0 additions & 1 deletion magenta/contrib/seq2seq_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
# See the License for the specific language governing permissions and
# limitations under the License.

# Lint as: python3
"""Tests for magenta.contrib.seq2seq."""

from magenta.contrib import seq2seq
Expand Down
1 change: 0 additions & 1 deletion magenta/contrib/training.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
# See the License for the specific language governing permissions and
# limitations under the License.

# Lint as: python3
"""Replacement for `tf.contrib.training`."""

from tensor2tensor.utils.hparam import HParams # pylint:disable=unused-import
1 change: 0 additions & 1 deletion magenta/models/nsynth/wavenet/h512_bo16.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
# See the License for the specific language governing permissions and
# limitations under the License.

# Lint as: python3
"""A WaveNet-style AutoEncoder Configuration and FastGeneration Config."""

from magenta.models.nsynth import reader
Expand Down
1 change: 0 additions & 1 deletion magenta/models/nsynth/wavenet/nsynth_generate.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
# See the License for the specific language governing permissions and
# limitations under the License.

# Lint as: python3
"""A binary for generating samples given a folder of .wav files or encodings."""

import os
Expand Down
1 change: 0 additions & 1 deletion magenta/models/nsynth/wavenet/nsynth_save_embeddings.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
# See the License for the specific language governing permissions and
# limitations under the License.

# Lint as: python3
"""With a trained model, compute the embeddings on a directory of WAV files."""

import os
Expand Down
1 change: 0 additions & 1 deletion magenta/models/nsynth/wavenet/train.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
# See the License for the specific language governing permissions and
# limitations under the License.

# Lint as: python2, python3
r"""The training script that runs the party.
This script requires tensorflow 1.1.0-rc1 or beyond.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
# See the License for the specific language governing permissions and
# limitations under the License.

# Lint as: python3
"""Interface to asynchronously capture continuous audio from PyAudio.
This module provides one class, AudioRecorder, which buffers chunks of audio
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
# See the License for the specific language governing permissions and
# limitations under the License.

# Lint as: python3
"""Experimental realtime transcription demo."""

import multiprocessing
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
# See the License for the specific language governing permissions and
# limitations under the License.

# Lint as: python3
"""Code for interacting with the TFLite model."""
import importlib
import numpy as np
Expand Down
1 change: 0 additions & 1 deletion magenta/models/piano_genie/configs.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
# See the License for the specific language governing permissions and
# limitations under the License.

# Lint as: python2, python3
"""Hyperparameter configurations for Piano Genie."""

from __future__ import absolute_import
Expand Down
1 change: 0 additions & 1 deletion magenta/models/piano_genie/eval.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
# See the License for the specific language governing permissions and
# limitations under the License.

# Lint as: python3
"""Piano Genie continuous eval script."""
import collections
import os
Expand Down
1 change: 0 additions & 1 deletion magenta/models/piano_genie/gold.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
# See the License for the specific language governing permissions and
# limitations under the License.

# Lint as: python2, python3
"""Gold standard musical sequences."""

from __future__ import absolute_import
Expand Down
1 change: 0 additions & 1 deletion magenta/models/piano_genie/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
# See the License for the specific language governing permissions and
# limitations under the License.

# Lint as: python3
"""Constructs a Piano Genie model."""

from magenta.contrib import rnn as contrib_rnn
Expand Down
1 change: 0 additions & 1 deletion magenta/models/sketch_rnn/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
# See the License for the specific language governing permissions and
# limitations under the License.

# Lint as: python3
"""Sketch-RNN Model."""

import random
Expand Down
1 change: 0 additions & 1 deletion magenta/models/sketch_rnn/sketch_rnn_train.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
# See the License for the specific language governing permissions and
# limitations under the License.

# Lint as: python3
"""SketchRNN training."""

import json
Expand Down
1 change: 0 additions & 1 deletion magenta/models/sketch_rnn/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
# See the License for the specific language governing permissions and
# limitations under the License.

# Lint as: python3
"""SketchRNN data loading and image manipulation utilities."""

import random
Expand Down
1 change: 0 additions & 1 deletion magenta/models/svg_vae/datagen_beam.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
# See the License for the specific language governing permissions and
# limitations under the License.

# Lint as: python3
"""Beam pipelines to generate examples for the GlyphAzzn dataset."""
from absl import app
from absl import flags
Expand Down
1 change: 0 additions & 1 deletion magenta/models/svg_vae/svg_decoder.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
# See the License for the specific language governing permissions and
# limitations under the License.

# Lint as: python3
"""Defines the SVGDecoder model."""

import copy
Expand Down
1 change: 0 additions & 1 deletion magenta/models/svg_vae/svg_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
# See the License for the specific language governing permissions and
# limitations under the License.

# Lint as: python3
"""Defines the Material Design Icons Problem."""
import io
import numpy as np
Expand Down
1 change: 0 additions & 1 deletion magenta/scripts/abc_compare.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
# See the License for the specific language governing permissions and
# limitations under the License.

# Lint as: python3
"""Compare a directory of abc and midi files.
Assumes a directory of abc files converted with something like:
Expand Down
1 change: 0 additions & 1 deletion magenta/scripts/convert_dir_to_note_sequences.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
# See the License for the specific language governing permissions and
# limitations under the License.

# Lint as: python3
r""""Converts music files to NoteSequence protos and writes TFRecord file.
Currently supports MIDI (.mid, .midi) and MusicXML (.xml, .mxl) files.
Expand Down
1 change: 0 additions & 1 deletion magenta/scripts/convert_dir_to_note_sequences_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
# See the License for the specific language governing permissions and
# limitations under the License.

# Lint as: python3
"""Tests for converting a directory of MIDIs to a NoteSequence TFRecord file."""

import os
Expand Down

0 comments on commit 77ed668

Please sign in to comment.