From 5cf13dfdf2915a2dfa9e8dd323980a80ad6f5385 Mon Sep 17 00:00:00 2001 From: Yilei Yang Date: Fri, 15 Apr 2022 11:28:30 -0700 Subject: [PATCH] Remove unused comments related to Python 2 compatibility. PiperOrigin-RevId: 442059380 --- magenta/models/latent_transfer/common.py | 1 - magenta/models/latent_transfer/common_joint.py | 1 - magenta/models/latent_transfer/encode_dataspace.py | 1 - magenta/models/latent_transfer/local_mnist.py | 1 - magenta/models/latent_transfer/nn.py | 1 - magenta/models/latent_transfer/sample_wavegan.py | 1 - magenta/models/latent_transfer/train_dataspace.py | 1 - magenta/models/latent_transfer/train_dataspace_classifier.py | 1 - magenta/models/onsets_frames_transcription/create_dataset.py | 1 - magenta/models/onsets_frames_transcription/create_dataset_lib.py | 1 - .../onsets_frames_transcription/create_dataset_lib_test.py | 1 - magenta/models/onsets_frames_transcription/drum_mappings.py | 1 - .../models/onsets_frames_transcription/estimator_spec_util.py | 1 - magenta/models/onsets_frames_transcription/infer.py | 1 - .../onsets_frames_transcription_create_dataset_maps.py | 1 - .../onsets_frames_transcription_create_tfrecords.py | 1 - magenta/models/onsets_frames_transcription/train_util.py | 1 - 17 files changed, 17 deletions(-) diff --git a/magenta/models/latent_transfer/common.py b/magenta/models/latent_transfer/common.py index 8af6c1e5a2..524f24685a 100644 --- a/magenta/models/latent_transfer/common.py +++ b/magenta/models/latent_transfer/common.py @@ -12,7 +12,6 @@ # See the License for the specific language governing permissions and # limitations under the License. -# Lint as: python3 """Common functions/helpers for dataspace model. This library contains many common functions and helpers used to for the diff --git a/magenta/models/latent_transfer/common_joint.py b/magenta/models/latent_transfer/common_joint.py index 88ceb37064..602dfae712 100644 --- a/magenta/models/latent_transfer/common_joint.py +++ b/magenta/models/latent_transfer/common_joint.py @@ -12,7 +12,6 @@ # See the License for the specific language governing permissions and # limitations under the License. -# Lint as: python3 """Common functions/helpers for the joint model. This library contains many comman functions and helpers used to train (using diff --git a/magenta/models/latent_transfer/encode_dataspace.py b/magenta/models/latent_transfer/encode_dataspace.py index 36e5e2ee40..66120f01ae 100644 --- a/magenta/models/latent_transfer/encode_dataspace.py +++ b/magenta/models/latent_transfer/encode_dataspace.py @@ -12,7 +12,6 @@ # See the License for the specific language governing permissions and # limitations under the License. -# Lint as: python3 """Encode the data using pre-trained VAE on dataspace. This script encodes the instances in dataspace (x) from the training set into diff --git a/magenta/models/latent_transfer/local_mnist.py b/magenta/models/latent_transfer/local_mnist.py index cd791dd8dd..727c287ea2 100644 --- a/magenta/models/latent_transfer/local_mnist.py +++ b/magenta/models/latent_transfer/local_mnist.py @@ -12,7 +12,6 @@ # See the License for the specific language governing permissions and # limitations under the License. -# Lint as: python3 """Reading MNIST dataset locally. This library contains functions used to read MNIST-family data such as vanilla diff --git a/magenta/models/latent_transfer/nn.py b/magenta/models/latent_transfer/nn.py index c112dfde5f..c43e686515 100644 --- a/magenta/models/latent_transfer/nn.py +++ b/magenta/models/latent_transfer/nn.py @@ -12,7 +12,6 @@ # See the License for the specific language governing permissions and # limitations under the License. -# Lint as: python3 """Nerual network components. This library containts nerual network components in either raw TF or sonnet diff --git a/magenta/models/latent_transfer/sample_wavegan.py b/magenta/models/latent_transfer/sample_wavegan.py index 6c1e6a0300..7b987437d3 100644 --- a/magenta/models/latent_transfer/sample_wavegan.py +++ b/magenta/models/latent_transfer/sample_wavegan.py @@ -12,7 +12,6 @@ # See the License for the specific language governing permissions and # limitations under the License. -# Lint as: python3 """Sample from pre-trained WaveGAN model. This script provides sampling from pre-trained WaveGAN model that is done diff --git a/magenta/models/latent_transfer/train_dataspace.py b/magenta/models/latent_transfer/train_dataspace.py index eb2bef75e6..360e3fbb86 100644 --- a/magenta/models/latent_transfer/train_dataspace.py +++ b/magenta/models/latent_transfer/train_dataspace.py @@ -12,7 +12,6 @@ # See the License for the specific language governing permissions and # limitations under the License. -# Lint as: python3 """Train VAE on dataspace. This script trains the models that model the data space as defined in diff --git a/magenta/models/latent_transfer/train_dataspace_classifier.py b/magenta/models/latent_transfer/train_dataspace_classifier.py index 2e8146b0b8..a7b6da6b59 100644 --- a/magenta/models/latent_transfer/train_dataspace_classifier.py +++ b/magenta/models/latent_transfer/train_dataspace_classifier.py @@ -12,7 +12,6 @@ # See the License for the specific language governing permissions and # limitations under the License. -# Lint as: python3 """Train classifier on dataspace. This script trains the data space classifier as defined in diff --git a/magenta/models/onsets_frames_transcription/create_dataset.py b/magenta/models/onsets_frames_transcription/create_dataset.py index a89d1db1bb..417543fab3 100644 --- a/magenta/models/onsets_frames_transcription/create_dataset.py +++ b/magenta/models/onsets_frames_transcription/create_dataset.py @@ -12,7 +12,6 @@ # See the License for the specific language governing permissions and # limitations under the License. -# Lint as: python3 """Beam pipeline for dataset creation.""" import hashlib diff --git a/magenta/models/onsets_frames_transcription/create_dataset_lib.py b/magenta/models/onsets_frames_transcription/create_dataset_lib.py index 28c4ec3997..902272982c 100644 --- a/magenta/models/onsets_frames_transcription/create_dataset_lib.py +++ b/magenta/models/onsets_frames_transcription/create_dataset_lib.py @@ -12,7 +12,6 @@ # See the License for the specific language governing permissions and # limitations under the License. -# Lint as: python3 """Library functions for creating dataset.""" import collections diff --git a/magenta/models/onsets_frames_transcription/create_dataset_lib_test.py b/magenta/models/onsets_frames_transcription/create_dataset_lib_test.py index c2629fa401..88613a784a 100644 --- a/magenta/models/onsets_frames_transcription/create_dataset_lib_test.py +++ b/magenta/models/onsets_frames_transcription/create_dataset_lib_test.py @@ -12,7 +12,6 @@ # See the License for the specific language governing permissions and # limitations under the License. -# Lint as: python3 """Tests for create_dataset_lib.""" import itertools diff --git a/magenta/models/onsets_frames_transcription/drum_mappings.py b/magenta/models/onsets_frames_transcription/drum_mappings.py index 305c882cb3..009a6560df 100644 --- a/magenta/models/onsets_frames_transcription/drum_mappings.py +++ b/magenta/models/onsets_frames_transcription/drum_mappings.py @@ -12,7 +12,6 @@ # See the License for the specific language governing permissions and # limitations under the License. -# Lint as: python3 """Drum hit mappings.""" from magenta.models.onsets_frames_transcription import constants diff --git a/magenta/models/onsets_frames_transcription/estimator_spec_util.py b/magenta/models/onsets_frames_transcription/estimator_spec_util.py index 779ad58e8f..cc7a3b589e 100644 --- a/magenta/models/onsets_frames_transcription/estimator_spec_util.py +++ b/magenta/models/onsets_frames_transcription/estimator_spec_util.py @@ -12,7 +12,6 @@ # See the License for the specific language governing permissions and # limitations under the License. -# Lint as: python3 """Utilities for creating EstimatorSpecs for Onsets and Frames models.""" import functools diff --git a/magenta/models/onsets_frames_transcription/infer.py b/magenta/models/onsets_frames_transcription/infer.py index 0f957328d3..6e8c0592e8 100644 --- a/magenta/models/onsets_frames_transcription/infer.py +++ b/magenta/models/onsets_frames_transcription/infer.py @@ -12,7 +12,6 @@ # See the License for the specific language governing permissions and # limitations under the License. -# Lint as: python3 """Inference for onset conditioned model. A histogram summary will be written for every example processed, and the diff --git a/magenta/models/onsets_frames_transcription/onsets_frames_transcription_create_dataset_maps.py b/magenta/models/onsets_frames_transcription/onsets_frames_transcription_create_dataset_maps.py index a1da757994..276aae994b 100644 --- a/magenta/models/onsets_frames_transcription/onsets_frames_transcription_create_dataset_maps.py +++ b/magenta/models/onsets_frames_transcription/onsets_frames_transcription_create_dataset_maps.py @@ -12,7 +12,6 @@ # See the License for the specific language governing permissions and # limitations under the License. -# Lint as: python3 """Create the tfrecord files necessary for training onsets and frames. The training files are split in ~20 second chunks by default, the test files diff --git a/magenta/models/onsets_frames_transcription/onsets_frames_transcription_create_tfrecords.py b/magenta/models/onsets_frames_transcription/onsets_frames_transcription_create_tfrecords.py index 4bc972071b..f54933ce5d 100644 --- a/magenta/models/onsets_frames_transcription/onsets_frames_transcription_create_tfrecords.py +++ b/magenta/models/onsets_frames_transcription/onsets_frames_transcription_create_tfrecords.py @@ -12,7 +12,6 @@ # See the License for the specific language governing permissions and # limitations under the License. -# Lint as: python3 r"""Beam job for creating tfrecord files from datasets. Expects a CSV with the following fields: audio_filename, midi_filename, split diff --git a/magenta/models/onsets_frames_transcription/train_util.py b/magenta/models/onsets_frames_transcription/train_util.py index 420fb92114..6c321b140c 100644 --- a/magenta/models/onsets_frames_transcription/train_util.py +++ b/magenta/models/onsets_frames_transcription/train_util.py @@ -12,7 +12,6 @@ # See the License for the specific language governing permissions and # limitations under the License. -# Lint as: python3 """Utilities for training.""" import collections