Skip to content

Instantly share code, notes, and snippets.

@IMOKURI
Created August 25, 2020 23:37
Show Gist options
  • Save IMOKURI/390417f6c2430845de14d9b0add1a941 to your computer and use it in GitHub Desktop.
Save IMOKURI/390417f6c2430845de14d9b0add1a941 to your computer and use it in GitHub Desktop.
jupyter notebook upload test
Display the source blob
Display the rendered blob
Raw
{
"cells": [
{
"cell_type": "code",
"execution_count": 1,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"2.3.0\n"
]
}
],
"source": [
"import tensorflow as tf\n",
"print(tf.__version__)"
]
},
{
"cell_type": "code",
"execution_count": 2,
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"[name: \"/device:CPU:0\"\n",
" device_type: \"CPU\"\n",
" memory_limit: 268435456\n",
" locality {\n",
" }\n",
" incarnation: 1319162021285038062,\n",
" name: \"/device:XLA_CPU:0\"\n",
" device_type: \"XLA_CPU\"\n",
" memory_limit: 17179869184\n",
" locality {\n",
" }\n",
" incarnation: 7675729330663459278\n",
" physical_device_desc: \"device: XLA_CPU device\",\n",
" name: \"/device:XLA_GPU:0\"\n",
" device_type: \"XLA_GPU\"\n",
" memory_limit: 17179869184\n",
" locality {\n",
" }\n",
" incarnation: 5363764087178248716\n",
" physical_device_desc: \"device: XLA_GPU device\",\n",
" name: \"/device:XLA_GPU:1\"\n",
" device_type: \"XLA_GPU\"\n",
" memory_limit: 17179869184\n",
" locality {\n",
" }\n",
" incarnation: 9886309779426995713\n",
" physical_device_desc: \"device: XLA_GPU device\",\n",
" name: \"/device:GPU:0\"\n",
" device_type: \"GPU\"\n",
" memory_limit: 5479168736\n",
" locality {\n",
" bus_id: 1\n",
" links {\n",
" }\n",
" }\n",
" incarnation: 10878954676567464850\n",
" physical_device_desc: \"device: 0, name: Tesla K20Xm, pci bus id: 0000:08:00.0, compute capability: 3.5\",\n",
" name: \"/device:GPU:1\"\n",
" device_type: \"GPU\"\n",
" memory_limit: 5479168736\n",
" locality {\n",
" bus_id: 2\n",
" numa_node: 1\n",
" links {\n",
" }\n",
" }\n",
" incarnation: 18016012857796187165\n",
" physical_device_desc: \"device: 1, name: Tesla K20Xm, pci bus id: 0000:27:00.0, compute capability: 3.5\"]"
]
},
"execution_count": 2,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"from tensorflow.python.client import device_lib\n",
"device_lib.list_local_devices()"
]
}
],
"metadata": {
"kernelspec": {
"display_name": "tensorflow",
"language": "python",
"name": "tensorflow"
},
"language_info": {
"codemirror_mode": {
"name": "ipython",
"version": 3
},
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.6.9"
}
},
"nbformat": 4,
"nbformat_minor": 4
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment