Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: RamakrishnanArun/deepdream
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: master
Choose a base ref
...
head repository: google/deepdream
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: master
Choose a head ref
Able to merge. These branches can be automatically merged.
  • 2 commits
  • 1 file changed
  • 2 contributors

Commits on Aug 12, 2015

  1. Copy the full SHA
    4732a3d View commit details
  2. Merge pull request google#21 from jli/gpu-note

    Add comments on how to enable Caffe GPU operations.
    znah committed Aug 12, 2015
    Copy the full SHA
    bbc2ddf View commit details
Showing with 6 additions and 1 deletion.
  1. +6 −1 dream.ipynb
7 changes: 6 additions & 1 deletion dream.ipynb
Original file line number Diff line number Diff line change
@@ -44,6 +44,11 @@
"\n",
"import caffe\n",
"\n",
"# If your GPU supports CUDA and Caffe was built with CUDA support,\n",
"# uncomment the following to run Caffe operations on the GPU.\n",
"# caffe.set_mode_gpu()\n",
"# caffe.set_device(0) # select GPU device if multiple devices exist\n",
"\n",
"def showarray(a, fmt='jpeg'):\n",
" a = np.uint8(np.clip(a, 0, 255))\n",
" f = StringIO()\n",
@@ -570,4 +575,4 @@
"metadata": {}
}
]
}
}