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: 442063805
  • Loading branch information
yilei authored and copybara-github committed Apr 15, 2022
1 parent 1010db3 commit e03d338
Show file tree
Hide file tree
Showing 17 changed files with 0 additions and 17 deletions.
1 change: 0 additions & 1 deletion trax/models/research/bert.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
# See the License for the specific language governing permissions and
# limitations under the License.

# Lint as: python3
"""BERT."""

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

# Lint as: python3
"""Transformer models: encoder, decoder, language model, and encoder-decoder.
The "Transformer" name and network architecture were introduced in the paper
Expand Down
1 change: 0 additions & 1 deletion trax/models/research/configurable_transformer_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
# See the License for the specific language governing permissions and
# limitations under the License.

# Lint as: python3
"""Tests for Transformer models."""

import functools
Expand Down
1 change: 0 additions & 1 deletion trax/models/research/hourglass.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
# See the License for the specific language governing permissions and
# limitations under the License.

# Lint as: python3
"""Hourglass - a hierarchical Transformer language model."""

import trax.layers as tl
Expand Down
1 change: 0 additions & 1 deletion trax/models/research/hourglass_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
# See the License for the specific language governing permissions and
# limitations under the License.

# Lint as: python3
"""Tests for Hourglass model."""

from absl.testing import absltest
Expand Down
1 change: 0 additions & 1 deletion trax/models/research/layerdrop_transformer.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
# See the License for the specific language governing permissions and
# limitations under the License.

# Lint as: python3
"""Layer-Skipping Transformer Models.
Like in https://arxiv.org/pdf/1909.11556.pdf
Expand Down
1 change: 0 additions & 1 deletion trax/models/research/layerdrop_transformer_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
# See the License for the specific language governing permissions and
# limitations under the License.

# Lint as: python3
"""Tests for Reformer models."""

from absl.testing import absltest
Expand Down
1 change: 0 additions & 1 deletion trax/models/research/rezero.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
# See the License for the specific language governing permissions and
# limitations under the License.

# Lint as: python3
"""ReZero Transformer Models.
ReZero transformer (https://arxiv.org/abs/2003.04887) is based on a simple
Expand Down
1 change: 0 additions & 1 deletion trax/models/research/rezero_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
# See the License for the specific language governing permissions and
# limitations under the License.

# Lint as: python3
"""Tests for ReZero models."""

from absl.testing import absltest
Expand Down
1 change: 0 additions & 1 deletion trax/models/research/rse.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
# See the License for the specific language governing permissions and
# limitations under the License.

# Lint as: python3
"""Residual Shuffle-Exchange Networks.
https://arxiv.org/pdf/2004.04662.pdf
Expand Down
1 change: 0 additions & 1 deletion trax/models/research/rse_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
# See the License for the specific language governing permissions and
# limitations under the License.

# Lint as: python3
"""Tests for Residual Shuffle-Exchange Networks."""

from absl.testing import absltest
Expand Down
1 change: 0 additions & 1 deletion trax/models/research/terraformer.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
# See the License for the specific language governing permissions and
# limitations under the License.

# Lint as: python3
"""The Terraformer model -- highly configurable version for research.
Implements the Terraformer model, introduced in the paper ...
Expand Down
1 change: 0 additions & 1 deletion trax/models/research/terraformer_memory_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
# See the License for the specific language governing permissions and
# limitations under the License.

# Lint as: python3
"""Test for memory usage in Terraformer models.
This test is designed to run on TPUv3 hardware, processing 1 million tokens at a
Expand Down
1 change: 0 additions & 1 deletion trax/models/research/terraformer_oom_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
# See the License for the specific language governing permissions and
# limitations under the License.

# Lint as: python3
"""Tests for OOM for Terraformer ."""

import functools
Expand Down
1 change: 0 additions & 1 deletion trax/models/research/terraformer_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
# See the License for the specific language governing permissions and
# limitations under the License.

# Lint as: python3
"""Tests for Terraformer models."""

import functools
Expand Down
1 change: 0 additions & 1 deletion trax/models/research/transformer2.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
# See the License for the specific language governing permissions and
# limitations under the License.

# Lint as: python3
"""Transformer variant -- no encoder-decoder attention."""

from trax import fastmath
Expand Down
1 change: 0 additions & 1 deletion trax/models/research/transformer2_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
# See the License for the specific language governing permissions and
# limitations under the License.

# Lint as: python3
"""Tests for Transformer models."""

from absl.testing import absltest
Expand Down

0 comments on commit e03d338

Please sign in to comment.