Skip to content

Commit

Permalink
Fix a typo in cache document (rapidsai#66)
Browse files Browse the repository at this point in the history
A minor typo in a notebook (Using Cache)

`chche` to `cache`.

Authors:
  - Gigon Bae (https://github.com/gigony)

Approvers:
  - https://github.com/jakirkham

URL: rapidsai#66
  • Loading branch information
gigony authored Jul 19, 2021
1 parent 8da6ca9 commit 1cafc61
Showing 1 changed file with 15 additions and 8 deletions.
23 changes: 15 additions & 8 deletions notebooks/Using_Cache.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -330,6 +330,13 @@
"You can get/set/unset the recording through `record()` method.\n"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": []
},
{
"cell_type": "code",
"execution_count": 5,
Expand All @@ -340,12 +347,12 @@
"name": "stdout",
"output_type": "stream",
"text": [
"cache hit: 0, chche miss: 1\n",
"cache hit: 1, chche miss: 1\n",
"cache hit: 2, chche miss: 1\n",
"cache hit: 0, cache miss: 1\n",
"cache hit: 1, cache miss: 1\n",
"cache hit: 2, cache miss: 1\n",
"Is recorded: True\n",
"Is recorded: False\n",
"cache hit: 0, chche miss: 0\n",
"cache hit: 0, cache miss: 0\n",
"\n",
" type: CacheType.PerProcess(1)\n",
"memory_size: 196608/31457280\n",
Expand All @@ -368,21 +375,21 @@
"cache = CuImage.cache('per_process', memory_capacity=memory_capacity, record_stat=True)\n",
"\n",
"img.read_region((0,0), (100,100))\n",
"print(f'cache hit: {cache.hit_count}, chche miss: {cache.miss_count}')\n",
"print(f'cache hit: {cache.hit_count}, cache miss: {cache.miss_count}')\n",
"\n",
"region = img.read_region((0,0), (100,100))\n",
"print(f'cache hit: {cache.hit_count}, chche miss: {cache.miss_count}')\n",
"print(f'cache hit: {cache.hit_count}, cache miss: {cache.miss_count}')\n",
"\n",
"region = img.read_region((0,0), (100,100))\n",
"print(f'cache hit: {cache.hit_count}, chche miss: {cache.miss_count}')\n",
"print(f'cache hit: {cache.hit_count}, cache miss: {cache.miss_count}')\n",
"\n",
"print(f'Is recorded: {cache.record()}')\n",
"\n",
"cache.record(False)\n",
"print(f'Is recorded: {cache.record()}')\n",
"\n",
"region = img.read_region((0,0), (100,100))\n",
"print(f'cache hit: {cache.hit_count}, chche miss: {cache.miss_count}')\n",
"print(f'cache hit: {cache.hit_count}, cache miss: {cache.miss_count}')\n",
"print()\n",
"\n",
"print(f' type: {cache.type}({int(cache.type)})')\n",
Expand Down

0 comments on commit 1cafc61

Please sign in to comment.