Skip to content
This repository was archived by the owner on Apr 14, 2023. It is now read-only.

Commit 60d1aa3

Browse files
authored
Merge pull request #5 from robzor92/tensorflow
Notebook updates
2 parents c8d4fff + e2db730 commit 60d1aa3

File tree

10 files changed

+397
-485
lines changed

10 files changed

+397
-485
lines changed

tensorflow/notebooks/PyTorch/mnist.ipynb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -170,8 +170,8 @@
170170
},
171171
"outputs": [],
172172
"source": [
173-
"from hops import tflauncher\n",
174-
"tflauncher.launch(spark, wrapper)"
173+
"from hops import experiment\n",
174+
"experiment.launch(spark, wrapper)"
175175
]
176176
},
177177
{

tensorflow/notebooks/Serving/serving_client.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
"concurrency=1\n",
2929
"num_tests=100\n",
3030
"work_dir=os.getcwd()\n",
31-
"server=serving.get_serving_endpoint(\"mnist\")\n",
31+
"server=\"host:ip\"\n",
3232
"\n",
3333
"\n",
3434
"class _ResultCounter(object):\n",

tensorflow/notebooks/Serving/train_and_export_model.ipynb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,8 +109,8 @@
109109
"\n",
110110
" serving.export(export_path, \"mnist\", 1)\n",
111111
" \n",
112-
"from hops import tflauncher\n",
113-
"tflauncher.launch(spark, wrapper)"
112+
"from hops import experiment\n",
113+
"experiment.launch(spark, wrapper)"
114114
]
115115
},
116116
{

tensorflow/notebooks/TensorFlow/cnn/Evolutionary_hyperparameter_search_Cifar10.ipynb

Lines changed: 390 additions & 0 deletions
Large diffs are not rendered by default.

tensorflow/notebooks/TensorFlow/cnn/cifar10_on_hops.ipynb

Lines changed: 0 additions & 478 deletions
This file was deleted.

tensorflow/notebooks/TensorFlow/gan/mnist_gan_reconstruction.ipynb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -326,7 +326,7 @@
326326
" assert(False)\n",
327327
"\n",
328328
" #for each batch\n",
329-
" for idx in xrange(0, batch_idxs):\n",
329+
" for idx in range(0, batch_idxs):\n",
330330
" l = idx*batch_size\n",
331331
" u = min((idx+1)*batch_size, nImgs)\n",
332332
" batchSz = u-l\n",
@@ -345,7 +345,7 @@
345345
" beta2 = beta1\n",
346346
" nIter = 10000 # number of iteration of the completion optimization for each batch\n",
347347
"\n",
348-
" for i in xrange(nIter):\n",
348+
" for i in range(nIter):\n",
349349
" fd = {\n",
350350
" z: zhats,\n",
351351
" mask: mask1,\n",
21.5 KB
Loading
25.4 KB
Loading
37.2 KB
Loading

0 commit comments

Comments
 (0)