Przeglądaj źródła

remove redundant indentation

rasbt 1 rok temu
rodzic
commit
b2858a91c5
1 zmienionych plików z 2 dodań i 2 usunięć
  1. 2 2
      ch05/01_main-chapter-code/ch05.ipynb

+ 2 - 2
ch05/01_main-chapter-code/ch05.ipynb

@@ -1247,8 +1247,8 @@
     "            model=model, idx=encoded,\n",
     "            max_new_tokens=50, context_size=context_size\n",
     "        )\n",
-    "        decoded_text = token_ids_to_text(token_ids, tokenizer)\n",
-    "        print(decoded_text.replace(\"\\n\", \" \"))  # Compact print format\n",
+    "    decoded_text = token_ids_to_text(token_ids, tokenizer)\n",
+    "    print(decoded_text.replace(\"\\n\", \" \"))  # Compact print format\n",
     "    model.train()"
    ]
   },