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: 442059380
  • Loading branch information
yilei authored and Magenta Team committed Apr 15, 2022
1 parent 8a86959 commit 5cf13df
Show file tree
Hide file tree
Showing 17 changed files with 0 additions and 17 deletions.
1 change: 0 additions & 1 deletion magenta/models/latent_transfer/common.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
"""Common functions/helpers for dataspace model.
This library contains many common functions and helpers used to for the
Expand Down
1 change: 0 additions & 1 deletion magenta/models/latent_transfer/common_joint.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
"""Common functions/helpers for the joint model.
This library contains many comman functions and helpers used to train (using
Expand Down
1 change: 0 additions & 1 deletion magenta/models/latent_transfer/encode_dataspace.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
"""Encode the data using pre-trained VAE on dataspace.
This script encodes the instances in dataspace (x) from the training set into
Expand Down
1 change: 0 additions & 1 deletion magenta/models/latent_transfer/local_mnist.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
"""Reading MNIST dataset locally.
This library contains functions used to read MNIST-family data such as vanilla
Expand Down
1 change: 0 additions & 1 deletion magenta/models/latent_transfer/nn.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
"""Nerual network components.
This library containts nerual network components in either raw TF or sonnet
Expand Down
1 change: 0 additions & 1 deletion magenta/models/latent_transfer/sample_wavegan.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
"""Sample from pre-trained WaveGAN model.
This script provides sampling from pre-trained WaveGAN model that is done
Expand Down
1 change: 0 additions & 1 deletion magenta/models/latent_transfer/train_dataspace.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
"""Train VAE on dataspace.
This script trains the models that model the data space as defined in
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
"""Train classifier on dataspace.
This script trains the data space classifier as defined in
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
"""Beam pipeline for dataset creation."""

import hashlib
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
"""Library functions for creating dataset."""

import collections
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
"""Tests for create_dataset_lib."""

import itertools
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
"""Drum hit mappings."""

from magenta.models.onsets_frames_transcription import constants
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
"""Utilities for creating EstimatorSpecs for Onsets and Frames models."""

import functools
Expand Down
1 change: 0 additions & 1 deletion magenta/models/onsets_frames_transcription/infer.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
"""Inference for onset conditioned model.
A histogram summary will be written for every example processed, and the
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
"""Create the tfrecord files necessary for training onsets and frames.
The training files are split in ~20 second chunks by default, the test files
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
r"""Beam job for creating tfrecord files from datasets.
Expects a CSV with the following fields: audio_filename, midi_filename, split
Expand Down
1 change: 0 additions & 1 deletion magenta/models/onsets_frames_transcription/train_util.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
"""Utilities for training."""

import collections
Expand Down

0 comments on commit 5cf13df

Please sign in to comment.