Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,13 @@
}
],
"source": [
"run ../../version_check.py"
"import sys\n",
"sys.path.append('../../')\n",
"\n",
"import version_check\n",
"\n",
"arch = version_check.arch_checker().arch\n",
"print(\"Arch: \", arch)"
]
},
{
Expand All @@ -123,8 +129,8 @@
"source": [
"%%writefile run.sh\n",
"#!/bin/bash\n",
"source $ONEAPI_INSTALL/setvars.sh --force > /dev/null 2>&1\n",
"source activate user-tensorflow-gpu\n",
"source /intel/oneapi/intelpython/bin/activate\n",
"conda activate tensorflow-gpu\n",
"echo \"########## Executing the run\"\n",
"DNNL_VERBOSE=1 python infer_resnet50.py > infer_rn50_gpu.csv\n",
"echo \"########## Done with the run\""
Expand All @@ -148,7 +154,7 @@
"metadata": {},
"outputs": [],
"source": [
"! chmod 755 ../../q; chmod 755 run.sh;if [ -x \"$(command -v qsub)\" ]; then ./q run.sh; else ./run.sh; fi"
"!chmod 755 run.sh; ./run.sh;"
]
},
{
Expand All @@ -167,8 +173,8 @@
"source": [
"%%writefile run.sh\n",
"#!/bin/bash\n",
"source $ONEAPI_INSTALL/setvars.sh --force > /dev/null 2>&1\n",
"source activate user-tensorflow\n",
"source /intel/oneapi/intelpython/bin/activate\n",
"source activate tensorflow\n",
"echo \"########## Executing the run\"\n",
"DNNL_VERBOSE=1 python infer_resnet50.py > infer_rn50_cpu.csv\n",
"echo \"########## Done with the run\""
Expand All @@ -192,7 +198,7 @@
"metadata": {},
"outputs": [],
"source": [
"! chmod 755 ../../q; chmod 755 run.sh;if [ -x \"$(command -v qsub)\" ]; then ./q run.sh; else ./run.sh; fi"
"!chmod 755 run.sh; ./run.sh;"
]
},
{
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -15,22 +15,20 @@
"env": [
"source /intel/oneapi/intelpython/bin/activate",
"conda activate tensorflow",
"pip install -r requirements.txt --no-deps",
"pip install tensorflow_hub==0.16.0 matplotlib",
"pip install tensorflow==2.15.0.post1",
"pip install jupyter ipykernel",
"python -m ipykernel install --user --name=tensorflow",
"conda deactivate",
"conda activate tensorflow-gpu",
"pip install -r requirements.txt --no-deps",
"pip install tensorflow_hub==0.16.0 matplotlib",
"pip install tensorflow==2.15.0.post1",
"pip install jupyter ipykernel",
"python -m ipykernel install --user --name=tensorflow-gpu",
"conda deactivate"
],
"id": "itex_sample_test",
"steps": [
"conda activate tensorflow",
"jupyter nbconvert --to notebook --execute ResNet50_Inference.ipynb"
"jupyter nbconvert --ExecutePreprocessor.enabled=True --ExecutePreprocessor.kernel_name=tensorflow --to notebook ResNet50_Inference.ipynb"
]
}]
},
Expand Down