This PR addresses the issue of file duplication by adding a random suffix when using sparkContext.addFile for ONNX and OpenVINO models. This enhancement ensures that each file added to Spark has a unique name, preventing conflicts and improving the robustness of file handling in distributed environments.
Description
This PR addresses the issue of file duplication by adding a random suffix when using
sparkContext.addFile
for ONNX and OpenVINO models. This enhancement ensures that each file added to Spark has a unique name, preventing conflicts and improving the robustness of file handling in distributed environments.Motivation and Context
Check this jira issue
How Has This Been Tested?
Screenshots (if appropriate):
Types of changes
Checklist: