|
51 | 51 | "metadata": {},
|
52 | 52 | "outputs": [],
|
53 | 53 | "source": [
|
54 |
| - "%env ONEAPI_INSTALL=~/intel/oneapi" |
| 54 | + "%env ONEAPI_INSTALL=/opt/intel/oneapi" |
55 | 55 | ]
|
56 | 56 | },
|
57 | 57 | {
|
|
124 | 124 | "%%writefile run.sh\n",
|
125 | 125 | "#!/bin/bash\n",
|
126 | 126 | "source $ONEAPI_INSTALL/setvars.sh --force > /dev/null 2>&1\n",
|
127 |
| - "source activate tensorflow-gpu\n", |
| 127 | + "source activate user-tensorflow-gpu\n", |
128 | 128 | "echo \"########## Executing the run\"\n",
|
129 | 129 | "DNNL_VERBOSE=1 python infer_resnet50.py > infer_rn50_gpu.csv\n",
|
130 | 130 | "echo \"########## Done with the run\""
|
|
156 | 156 | "metadata": {},
|
157 | 157 | "source": [
|
158 | 158 | "#### Run on CPU via Intel TensorFlow\n",
|
159 |
| - "Users also can run the same infer_resnet50.py on CPU with intel tensorflow or stock tensorflow." |
| 159 | + "Users also can run the same infer_resnet50.py on CPU with intel tensorflow or stock tensorflow. Please switch to the user-tensorflow jupyter kernel and execute again from prerequisites for CPU run" |
160 | 160 | ]
|
161 | 161 | },
|
162 | 162 | {
|
|
168 | 168 | "%%writefile run.sh\n",
|
169 | 169 | "#!/bin/bash\n",
|
170 | 170 | "source $ONEAPI_INSTALL/setvars.sh --force > /dev/null 2>&1\n",
|
171 |
| - "source activate tensorflow\n", |
| 171 | + "source activate user-tensorflow\n", |
172 | 172 | "echo \"########## Executing the run\"\n",
|
173 | 173 | "DNNL_VERBOSE=1 python infer_resnet50.py > infer_rn50_cpu.csv\n",
|
174 | 174 | "echo \"########## Done with the run\""
|
|
269 | 269 | "metadata": {},
|
270 | 270 | "outputs": [],
|
271 | 271 | "source": [
|
272 |
| - "FdIndex=2" |
| 272 | + "FdIndex=0" |
273 | 273 | ]
|
274 | 274 | },
|
275 | 275 | {
|
|
325 | 325 | "metadata": {},
|
326 | 326 | "outputs": [],
|
327 | 327 | "source": [
|
328 |
| - "onednn.breakdown(data,\"arch\",\"time\")" |
| 328 | + "onednn.breakdown(exec_data,\"arch\",\"time\")" |
329 | 329 | ]
|
330 | 330 | },
|
331 | 331 | {
|
|
382 | 382 | "metadata": {},
|
383 | 383 | "outputs": [],
|
384 | 384 | "source": [
|
385 |
| - "os.chdir(initial_cwd)\n", |
386 | 385 | "print('[CODE_SAMPLE_COMPLETED_SUCCESFULLY]')"
|
387 | 386 | ]
|
388 | 387 | }
|
|
0 commit comments