diff --git a/nbs/index.ipynb b/nbs/index.ipynb index 6c641a3..78f0b51 100644 --- a/nbs/index.ipynb +++ b/nbs/index.ipynb @@ -26,8 +26,8 @@ "name": "stdout", "output_type": "stream", "text": [ - "CPU times: user 263 ms, sys: 53.9 ms, total: 317 ms\n", - "Wall time: 407 ms\n" + "CPU times: user 1.57 s, sys: 1.59 s, total: 3.16 s\n", + "Wall time: 731 ms\n" ] } ], @@ -96,7 +96,7 @@ }, { "cell_type": "code", - "execution_count": 7, + "execution_count": 3, "metadata": {}, "outputs": [ { @@ -113,7 +113,7 @@ }, { "cell_type": "code", - "execution_count": 6, + "execution_count": 4, "metadata": {}, "outputs": [ { @@ -317,6 +317,8 @@ "```↯ AttrDict ↯\n", "items[]\n", " 0 - PDF (🏷️ str)\n", + " 1 - dump_pdf_images (🏷️ str)\n", + " 2 - preview_pdf (🏷️ str)\n", "\n", "```\n", "\n" @@ -563,22 +565,23 @@ "```↯ AttrDict ↯\n", "items[]\n", " 0 - AttrDict (🏷️ str)\n", - " 1 - Config (🏷️ str)\n", - " 2 - isnamedtupleinstance (🏷️ str)\n", - " 3 - unpack (🏷️ str)\n", - " 4 - hash_tensor (🏷️ str)\n", - " 5 - hash_pandas_dataframe (🏷️ str)\n", - " 6 - AttrDictDeprecated (🏷️ str)\n", - " 7 - decompose (🏷️ str)\n", - " 8 - pretty_json (🏷️ str)\n", - " 9 - read_json (🏷️ str)\n", - " 10 - write_json (🏷️ str)\n", - " 11 - write_jsonl (🏷️ str)\n", - " 12 - read_jsonl (🏷️ str)\n", - " 13 - read_yaml (🏷️ str)\n", - " 14 - write_yaml (🏷️ str)\n", - " 15 - read_xml (🏷️ str)\n", - " 16 - write_xml (🏷️ str)\n", + " 1 - json (🏷️ str)\n", + " 2 - Config (🏷️ str)\n", + " 3 - isnamedtupleinstance (🏷️ str)\n", + " 4 - unpack (🏷️ str)\n", + " 5 - hash_tensor (🏷️ str)\n", + " 6 - hash_pandas_dataframe (🏷️ str)\n", + " 7 - AttrDictDeprecated (🏷️ str)\n", + " 8 - decompose (🏷️ str)\n", + " 9 - pretty_json (🏷️ str)\n", + " 10 - read_json (🏷️ str)\n", + " 11 - write_json (🏷️ str)\n", + " 12 - write_jsonl (🏷️ str)\n", + " 13 - read_jsonl (🏷️ str)\n", + " 14 - read_yaml (🏷️ str)\n", + " 15 - write_yaml (🏷️ str)\n", + " 16 - read_xml (🏷️ str)\n", + " 17 - write_xml (🏷️ str)\n", "\n", "```\n", "\n" @@ -823,6 +826,31 @@ "\n" ] }, + { + "data": { + "text/markdown": [ + "## profiler" + ], + "text/plain": [ + "" + ] + }, + "metadata": {}, + "output_type": "display_data" + }, + { + "name": "stdout", + "output_type": "stream", + "text": [ + "\n", + "```↯ AttrDict ↯\n", + "items[]\n", + " 0 - time_profiler (🏷️ str)\n", + "\n", + "```\n", + "\n" + ] + }, { "data": { "text/markdown": [ diff --git a/scripts.ipynb b/scripts.ipynb index eea7339..254e334 100644 --- a/scripts.ipynb +++ b/scripts.ipynb @@ -694,7 +694,7 @@ }, { "cell_type": "code", - "execution_count": 10, + "execution_count": 11, "metadata": {}, "outputs": [ { @@ -970,12 +970,12 @@ "removing build/bdist.macosx-11.1-arm64/wheel\n", "Uploading distributions to https://upload.pypi.org/legacy/\n", "Uploading torch_snippets-0.545-py3-none-any.whl\n", - "\u001b[2K\u001b[35m100%\u001b[0m \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m125.8/125.8 kB\u001b[0m • \u001b[33m00:02\u001b[0m • \u001b[31m42.6 MB/s\u001b[0m\n", + "\u001b[2K\u001b[35m100%\u001b[0m \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m125.8/125.8 kB\u001b[0m • \u001b[33m00:01\u001b[0m • \u001b[31m158.0 MB/s\u001b[0m\n", "\u001b[?25h\u001b[33mWARNING \u001b[0m Error during upload. Retry with the --verbose option for more details. \n", "\u001b[31mERROR \u001b[0m HTTPError: 400 Bad Request from https://upload.pypi.org/legacy/ \n", " File already exists ('torch_snippets-0.545-py3-none-any.whl', with \n", " blake2_256 hash \n", - " '419ed326cc7b5f714b8b5d6c368bb036cb6b357a95ee6128e48ef71d6f42559c'). \n", + " '97db9be264982980d1d4d99a72a0d916ebcd547b529d3d1e39edc39c4255b7ff'). \n", " See https://pypi.org/help/#file-name-reuse for more information. \n" ] } @@ -987,17 +987,17 @@ }, { "cell_type": "code", - "execution_count": 10, + "execution_count": 12, "metadata": {}, "outputs": [ { "data": { "text/html": [ - "
[09/07/24 00:42:22] INFO     loaded 27 lines                                                                                                         678460756.py::2\" target=\"_blank\"><module>:2\n",
+       "
[10/02/24 18:41:27] INFO     loaded 27 lines                                                                                                         678460756.py::2\" target=\"_blank\"><module>:2\n",
        "
\n" ], "text/plain": [ - "\u001b[2;36m[09/07/24 00:42:22]\u001b[0m\u001b[2;36m \u001b[0m\u001b[2;33mINFO \u001b[0m loaded \u001b[1;36m27\u001b[0m lines \u001b]8;id=118251;file:///var/folders/1_/71dqv9vx2750gmyz77q_f45w0000gn/T/ipykernel_17624/678460756.py:2\u001b\\\u001b[2m678460756.py\u001b[0m\u001b]8;;\u001b\\\u001b[2m:\u001b[0m\u001b]8;id=549412;file:///var/folders/1_/71dqv9vx2750gmyz77q_f45w0000gn/T/ipykernel_17624/678460756.py:2#:2\u001b\\\u001b[2m:2\u001b[0m\u001b]8;;\u001b\\\n" + "\u001b[2;36m[10/02/24 18:41:27]\u001b[0m\u001b[2;36m \u001b[0m\u001b[2;33mINFO \u001b[0m loaded \u001b[1;36m27\u001b[0m lines \u001b]8;id=672676;file:///var/folders/1_/71dqv9vx2750gmyz77q_f45w0000gn/T/ipykernel_31691/678460756.py:2\u001b\\\u001b[2m678460756.py\u001b[0m\u001b]8;;\u001b\\\u001b[2m:\u001b[0m\u001b]8;id=128876;file:///var/folders/1_/71dqv9vx2750gmyz77q_f45w0000gn/T/ipykernel_31691/678460756.py:2#:2\u001b\\\u001b[2m:2\u001b[0m\u001b]8;;\u001b\\\n" ] }, "metadata": {}, @@ -1007,17 +1007,19 @@ "name": "stdout", "output_type": "stream", "text": [ - "[master a6a8495] 0.544\n", - " 37 files changed, 3886 insertions(+), 2268 deletions(-)\n", - "Enumerating objects: 85, done.\n", - "Counting objects: 100% (85/85), done.\n", + "[master 9df0fd8] 0.545\n", + " 48 files changed, 2705 insertions(+), 476 deletions(-)\n", + " create mode 100644 _proc/profiler.ipynb\n", + " create mode 100644 docs/profiler.html\n", + "Enumerating objects: 104, done.\n", + "Counting objects: 100% (104/104), done.\n", "Delta compression using up to 12 threads\n", - "Compressing objects: 100% (44/44), done.\n", - "Writing objects: 100% (44/44), 55.62 KiB | 3.09 MiB/s, done.\n", - "Total 44 (delta 40), reused 0 (delta 0), pack-reused 0\n", - "remote: Resolving deltas: 100% (40/40), completed with 37 local objects.\u001b[K\n", + "Compressing objects: 100% (54/54), done.\n", + "Writing objects: 100% (54/54), 32.21 KiB | 5.37 MiB/s, done.\n", + "Total 54 (delta 50), reused 0 (delta 0), pack-reused 0\n", + "remote: Resolving deltas: 100% (50/50), completed with 47 local objects.\u001b[K\n", "To ssh://github.com/sizhky/torch_snippets\n", - " 353690e..a6a8495 master -> master\n" + " 161b6fe..9df0fd8 master -> master\n" ] } ],