Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions airio/examples/inspect.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@
},
"outputs": [],
"source": [
"def _imdb_preprocessor(raw_example: Dict[str, bytes]) -\u003e Dict[str, str]:\n",
"def _imdb_preprocessor(raw_example: Dict[str, bytes]) -> Dict[str, str]:\n",
" final_example = {\"inputs\": \"imdb \" + raw_example[\"text\"].decode(\"utf-8\")}\n",
" raw_label = str(raw_example[\"label\"])\n",
" if raw_label == \"0\":\n",
Expand Down Expand Up @@ -259,7 +259,7 @@
" print(f\" {k}: {v}\")\n",
" print(f\" -------------------------\")\n",
" count += 1\n",
" if count \u003e= airio.dataset_providers.DEFAULT_NUM_RECORDS_TO_INSPECT:\n",
" if count >= airio.dataset_providers.DEFAULT_NUM_RECORDS_TO_INSPECT:\n",
" break"
]
},
Expand Down
4 changes: 2 additions & 2 deletions airio/examples/quickstart.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@
},
"outputs": [],
"source": [
"def _imdb_preprocessor(raw_example: Dict[str, bytes]) -\u003e Dict[str, str]:\n",
"def _imdb_preprocessor(raw_example: Dict[str, bytes]) -> Dict[str, str]:\n",
" final_example = {\"inputs\": \"imdb \" + raw_example[\"text\"].decode(\"utf-8\")}\n",
" raw_label = str(raw_example[\"label\"])\n",
" if raw_label == \"0\":\n",
Expand Down Expand Up @@ -167,7 +167,7 @@
" print(f\" {k}: {v}\")\n",
" print(f\" -------------------------\")\n",
" count += 1\n",
" if count \u003e= airio.dataset_providers.DEFAULT_NUM_RECORDS_TO_INSPECT:\n",
" if count >= airio.dataset_providers.DEFAULT_NUM_RECORDS_TO_INSPECT:\n",
" break"
]
}
Expand Down
2 changes: 1 addition & 1 deletion airio/examples/train_wmt.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@
},
"outputs": [],
"source": [
"def get_t5_model(**config_overrides) -\u003e models.EncoderDecoderModel:\n",
"def get_t5_model(**config_overrides) -> models.EncoderDecoderModel:\n",
" \"\"\"Returns a small T5 1.1 model.\"\"\"\n",
" tiny_config = network.T5Config(\n",
" vocab_size=32128,\n",
Expand Down