Skip to content
This repository was archived by the owner on Jan 21, 2025. It is now read-only.

Commit 58153bf

Browse files
yileiMesh TensorFlow Team
authored andcommitted
Remove unused comments related to Python 2 compatibility.
PiperOrigin-RevId: 436968769
1 parent cccc00e commit 58153bf

12 files changed

+0
-12
lines changed

mesh_tensorflow/bert/bert.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
# See the License for the specific language governing permissions and
1414
# limitations under the License.
1515

16-
# Lint as: python3
1716
"""MeshTensorFlow implementation of BERT.
1817
1918
The code is ported from https://github.com/google-research/bert.

mesh_tensorflow/bert/optimization.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
# See the License for the specific language governing permissions and
1414
# limitations under the License.
1515

16-
# Lint as: python3
1716
"""Functions and classes related to optimization (weight updates)."""
1817

1918
from __future__ import absolute_import

mesh_tensorflow/bert/run_pretraining.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
# See the License for the specific language governing permissions and
1414
# limitations under the License.
1515

16-
# Lint as: python3
1716
"""Run masked LM/next sentence masked_lm pre-training for BERT."""
1817

1918
from __future__ import absolute_import

mesh_tensorflow/transformer/adaptive_softmax.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
# See the License for the specific language governing permissions and
1414
# limitations under the License.
1515

16-
# Lint as: python3
1716
"""Implementation of adaptive softmax.
1817
1918
See the papers https://arxiv.org/abs/1609.04309 and

mesh_tensorflow/transformer/adaptive_softmax_test.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
# See the License for the specific language governing permissions and
1414
# limitations under the License.
1515

16-
# Lint as: python3
1716
"""Tests for mesh_tensorflow.transformer.adaptive_softmax."""
1817

1918
from __future__ import absolute_import

mesh_tensorflow/transformer/dataset_test.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
# See the License for the specific language governing permissions and
1414
# limitations under the License.
1515

16-
# Lint as: python3
1716
"""Tests for mesh_tensorflow.transformer.dataset."""
1817
from absl.testing import absltest
1918
from absl.testing import parameterized

mesh_tensorflow/transformer/evolved_transformer.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
# See the License for the specific language governing permissions and
1414
# limitations under the License.
1515

16-
# Lint as: python3
1716
"""Custom layers for the evolved transformer.
1817
1918
See https://arxiv.org/abs/1901.11117 for more details.

mesh_tensorflow/transformer/learning_rate_schedules_test.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
# See the License for the specific language governing permissions and
1414
# limitations under the License.
1515

16-
# Lint as: python3
1716
from __future__ import absolute_import
1817
from __future__ import division
1918
from __future__ import print_function

mesh_tensorflow/transformer/memory_layers.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
# See the License for the specific language governing permissions and
1414
# limitations under the License.
1515

16-
# Lint as: python3
1716
"""Implementation of Flat and ProductKey Memory Layers.
1817
1918
See the papers https://arxiv.org/abs/1907.05242 and

mesh_tensorflow/transformer/memory_layers_test.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
# See the License for the specific language governing permissions and
1414
# limitations under the License.
1515

16-
# Lint as: python3
1716
"""Tests for mesh_tensorflow.transformer.memory_layers."""
1817

1918
from __future__ import absolute_import

0 commit comments

Comments
 (0)