Skip to content

Commit 880385b

Browse files
MarkDaoustcopybara-github
authored andcommitted
Update colab to TPUv2.
PiperOrigin-RevId: 628160440
1 parent e520630 commit 880385b

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

site/en/guide/tpu.ipynb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -589,7 +589,9 @@
589589
"accelerator": "TPU",
590590
"colab": {
591591
"name": "tpu.ipynb",
592-
"toc_visible": true
592+
"toc_visible": true,
593+
"machine_shape": "hm",
594+
"gpuType": "V28"
593595
},
594596
"kernelspec": {
595597
"display_name": "Python 3",

tools/tensorflow_docs/tools/nblint/style/tensorflow.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -81,9 +81,7 @@ def not_translation(args):
8181

8282
# Button checks
8383

84-
# Look for class="tfo-notebook-buttons" (CSS used on website versions) or the
85-
# run-in-colab logo (for notebooks that stick to GitHub/Colab).
86-
is_button_cell_re = re.compile(r"class.*tfo-notebook-buttons|colab_logo_32px\.png")
84+
is_button_cell_re = re.compile(r"class.*tfo-notebook-buttons")
8785

8886

8987
def get_arg_or_fail(user_args, arg_name, arg_fmt):

0 commit comments

Comments
 (0)