Skip to content

Conversation

rayyeo3006
Copy link

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: Yeo, Ray [email protected]

Existing Sample Changes

Description

This fixes IndexError in IntelTensorFlow_Enabling_Auto_Mixed_Precision_for_TransferLearning
https://jira.devtools.intel.com/browse/ONSAM-2083

Fixes Issue# 2083

External Dependencies

List any external dependencies created as a result of this change.

Type of change

Please delete options that are not relevant. Add a 'X' to the one that is applicable.

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Implement fixes for ONSAM Jiras

How Has This Been Tested?

Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration

  • Command Line
  • oneapi-cli
  • Visual Studio
  • Eclipse IDE
  • VSCode
  • When compiling the compliler flag "-Wall -Wformat-security -Werror=format-security" was used

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 <[email protected]>
@rayyeo3006 rayyeo3006 marked this pull request as ready for review March 3, 2025 10:30
@Ankur-singh
Copy link
Contributor

@rayyeo3006 Thank you so much for the detailed PR. Just a small clarification and we should be all set to merge the PR

@rayyeo3006 rayyeo3006 requested a review from Ankur-singh March 3, 2025 21:40
@fongjiantan
Copy link
Contributor

This PR is submitted under oneAPI_CS_Team4 for hackathon

@Ankur-singh
Copy link
Contributor

@jimmytwei the PR is good to merge.

@jimmytwei jimmytwei merged commit 8d75afc into oneapi-src:development Mar 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants