Upload runtime/Lib/site-packages/onnxruntime/datasets/__init__.py with huggingface_hub
Browse files
runtime/Lib/site-packages/onnxruntime/datasets/__init__.py
CHANGED
|
@@ -1,17 +1,4 @@
|
|
| 1 |
-
#
|
| 2 |
-
#
|
| 3 |
-
|
| 4 |
-
|
| 5 |
-
"""
|
| 6 |
-
import os
|
| 7 |
-
|
| 8 |
-
|
| 9 |
-
def get_example(name):
|
| 10 |
-
"""
|
| 11 |
-
Retrieves the absolute file name of an example.
|
| 12 |
-
"""
|
| 13 |
-
this = os.path.abspath(os.path.dirname(__file__))
|
| 14 |
-
full = os.path.join(this, name)
|
| 15 |
-
if not os.path.exists(full):
|
| 16 |
-
raise FileNotFoundError(f"Unable to find example '{name}'")
|
| 17 |
-
return full
|
|
|
|
| 1 |
+
# -------------------------------------------------------------------------
|
| 2 |
+
# Copyright (c) Microsoft Corporation. All rights reserved.
|
| 3 |
+
# Licensed under the MIT License.
|
| 4 |
+
# --------------------------------------------------------------------------
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|