forked from oneapi-src/oneAPI-samples
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsample.json
More file actions
executable file
·51 lines (49 loc) · 1.84 KB
/
sample.json
File metadata and controls
executable file
·51 lines (49 loc) · 1.84 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
{
"guid": "B213F6A5-E0C3-4267-8D0B-DDA5073A3F23",
"name": "Intel® Extension for TensorFlow* Getting Started",
"categories": ["Toolkit/oneAPI AI And Analytics/Features And Functionality"],
"description": "This code sample will guide users how to run a TensorFlow inference workload on both the GPU and CPU by using the Intel® AI Analytics Toolkit.",
"builder": ["cli"],
"languages": [{
"python": {}
}],
"os": ["linux"],
"targetDevice": ["CPU", "GPU"],
"gpuRequired": ["ats-m", "pvc"],
"ciTests": {
"linux": [{
"env": [
"source /intel/oneapi/intelpython/bin/activate",
"conda activate base",
"pip install uv notebook",
"uv init",
"uv python pin $(which python)",
"uv venv --system-site-packages",
"uv add -r requirements.txt",
"uv add numpy==1.26.4",
"uv run ipython kernel install --user --name=tensorflow",
"uv run ipython kernel install --user --name=tensorflow-gpu",
"conda activate tensorflow",
"pip install uv notebook",
"conda deactivate",
"conda activate tensorflow-gpu",
"pip install uv notebook",
"conda deactivate"
],
"id": "itex_sample_test",
"steps": [
"conda activate tensorflow",
"uv python pin $(which python)",
"uv venv --system-site-packages",
"jupyter nbconvert --ExecutePreprocessor.enabled=True --ExecutePreprocessor.kernel_name=tensorflow --to notebook --execute ResNet50_Inference.ipynb --output ResNet50_Inference.nbcovert.cpu.ipynb",
"conda deactivate",
"conda activate tensorflow-gpu",
"uv python pin $(which python)",
"uv venv --system-site-packages",
"jupyter nbconvert --ExecutePreprocessor.enabled=True --ExecutePreprocessor.kernel_name=tensorflow-gpu --to notebook --execute ResNet50_Inference.ipynb --output ResNet50_Inference.nbcovert.gpu.ipynb",
"conda deactivate"
]
}]
},
"expertise": "Code Optimization"
}