Skip to content

Commit

Permalink
0.545
Browse files Browse the repository at this point in the history
  • Loading branch information
sizhky committed Oct 2, 2024
1 parent 9df0fd8 commit 532b946
Show file tree
Hide file tree
Showing 2 changed files with 65 additions and 35 deletions.
68 changes: 48 additions & 20 deletions nbs/index.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -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"
]
}
],
Expand Down Expand Up @@ -96,7 +96,7 @@
},
{
"cell_type": "code",
"execution_count": 7,
"execution_count": 3,
"metadata": {},
"outputs": [
{
Expand All @@ -113,7 +113,7 @@
},
{
"cell_type": "code",
"execution_count": 6,
"execution_count": 4,
"metadata": {},
"outputs": [
{
Expand Down Expand Up @@ -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"
Expand Down Expand Up @@ -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"
Expand Down Expand Up @@ -823,6 +826,31 @@
"\n"
]
},
{
"data": {
"text/markdown": [
"## profiler"
],
"text/plain": [
"<IPython.core.display.Markdown object>"
]
},
"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": [
Expand Down
32 changes: 17 additions & 15 deletions scripts.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -694,7 +694,7 @@
},
{
"cell_type": "code",
"execution_count": 10,
"execution_count": 11,
"metadata": {},
"outputs": [
{
Expand Down Expand Up @@ -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"
]
}
Expand All @@ -987,17 +987,17 @@
},
{
"cell_type": "code",
"execution_count": 10,
"execution_count": 12,
"metadata": {},
"outputs": [
{
"data": {
"text/html": [
"<pre style=\"white-space:pre;overflow-x:auto;line-height:normal;font-family:Menlo,'DejaVu Sans Mono',consolas,'Courier New',monospace\"><span style=\"color: #7fbfbf; text-decoration-color: #7fbfbf\">[09/07/24 00:42:22] </span><span style=\"color: #bfbf7f; text-decoration-color: #bfbf7f\">INFO </span> loaded <span style=\"color: #008080; text-decoration-color: #008080; font-weight: bold\">27</span> lines <a href=\"file:///var/folders/1_/71dqv9vx2750gmyz77q_f45w0000gn/T/ipykernel_17624/678460756.py:2\" target=\"_blank\"><span style=\"color: #7f7f7f; text-decoration-color: #7f7f7f\">678460756.py</span></a><span style=\"color: #7f7f7f; text-decoration-color: #7f7f7f\">:</span><a href=\"file:///var/folders/1_/71dqv9vx2750gmyz77q_f45w0000gn/T/ipykernel_17624/678460756.py:2#<module>:2\" target=\"_blank\"><span style=\"color: #7f7f7f; text-decoration-color: #7f7f7f\">&lt;module&gt;:2</span></a>\n",
"<pre style=\"white-space:pre;overflow-x:auto;line-height:normal;font-family:Menlo,'DejaVu Sans Mono',consolas,'Courier New',monospace\"><span style=\"color: #7fbfbf; text-decoration-color: #7fbfbf\">[10/02/24 18:41:27] </span><span style=\"color: #bfbf7f; text-decoration-color: #bfbf7f\">INFO </span> loaded <span style=\"color: #008080; text-decoration-color: #008080; font-weight: bold\">27</span> lines <a href=\"file:///var/folders/1_/71dqv9vx2750gmyz77q_f45w0000gn/T/ipykernel_31691/678460756.py:2\" target=\"_blank\"><span style=\"color: #7f7f7f; text-decoration-color: #7f7f7f\">678460756.py</span></a><span style=\"color: #7f7f7f; text-decoration-color: #7f7f7f\">:</span><a href=\"file:///var/folders/1_/71dqv9vx2750gmyz77q_f45w0000gn/T/ipykernel_31691/678460756.py:2#<module>:2\" target=\"_blank\"><span style=\"color: #7f7f7f; text-decoration-color: #7f7f7f\">&lt;module&gt;:2</span></a>\n",
"</pre>\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#<module>:2\u001b\\\u001b[2m<module>: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#<module>:2\u001b\\\u001b[2m<module>:2\u001b[0m\u001b]8;;\u001b\\\n"
]
},
"metadata": {},
Expand All @@ -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"
]
}
],
Expand Down

0 comments on commit 532b946

Please sign in to comment.