Commit b448b90
syeo
[ONSAM-2083]Fix for IndexError
This fixes IndexError in IntelTensorFlow_Enabling_Auto_Mixed_Precision_for_TransferLearning
Before this fix, throughput_list could be less than 2 elements and causing IndexError. With the added check, speedup will only be calculated if there are at least two elements.
Fixes [ONSAM-2083]
Signed-off-by: syeo <ray.yeo@intel.com>1 parent b817a0d commit b448b90
File tree
1 file changed
+7
-5
lines changed- AI-and-Analytics/Features-and-Functionality/IntelTensorFlow_Enabling_Auto_Mixed_Precision_for_TransferLearning/scripts
1 file changed
+7
-5
lines changedLines changed: 7 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
12 | | - | |
13 | | - | |
14 | | - | |
15 | | - | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
0 commit comments