Small spelling fix.
Replaces `orignal` with `original`. 🦌
Closes https://github.com/google/iree/pull/2150
COPYBARA_INTEGRATE_REVIEW=https://github.com/google/iree/pull/2150 from google:phoenix-meadowlark-patch-2 a1155f35c6e1b29ddb044b1e620fa338245cac15
PiperOrigin-RevId: 315533449
diff --git a/integrations/tensorflow/bindings/python/pyiree/tf/support/tf_test_utils.py b/integrations/tensorflow/bindings/python/pyiree/tf/support/tf_test_utils.py
index fdfed05..37da253 100644
--- a/integrations/tensorflow/bindings/python/pyiree/tf/support/tf_test_utils.py
+++ b/integrations/tensorflow/bindings/python/pyiree/tf/support/tf_test_utils.py
@@ -42,7 +42,7 @@
"--test_tmpdir")
FLAGS = flags.FLAGS
-ORIGNAL_SAVED_MODEL_PATH_ATTR = "_ORIGINAL_SAVED_MODEL_PATH"
+ORIGINAL_SAVED_MODEL_PATH_ATTR = "_ORIGINAL_SAVED_MODEL_PATH"
# Per test directory where debug artifacts are dumped.
global_debug_dir = None
@@ -112,9 +112,9 @@
return compiled_module
- if hasattr(tf_module, ORIGNAL_SAVED_MODEL_PATH_ATTR):
+ if hasattr(tf_module, ORIGINAL_SAVED_MODEL_PATH_ATTR):
# Compile directly from the original path.
- sm_path = getattr(tf_module, ORIGNAL_SAVED_MODEL_PATH_ATTR)
+ sm_path = getattr(tf_module, ORIGINAL_SAVED_MODEL_PATH_ATTR)
logging.info(
"Compiling from original saved_model path (not round-tripping): %s",
sm_path)
@@ -146,10 +146,10 @@
which TensorFlow tends to lose on round-trip.
"""
tf_module = tf.saved_model.load(path)
- assert not hasattr(tf_module, ORIGNAL_SAVED_MODEL_PATH_ATTR), (
+ assert not hasattr(tf_module, ORIGINAL_SAVED_MODEL_PATH_ATTR), (
"Saved model (%s) already has attribute %s" %
- (path, ORIGNAL_SAVED_MODEL_PATH_ATTR))
- setattr(tf_module, ORIGNAL_SAVED_MODEL_PATH_ATTR, path)
+ (path, ORIGINAL_SAVED_MODEL_PATH_ATTR))
+ setattr(tf_module, ORIGINAL_SAVED_MODEL_PATH_ATTR, path)
return tf_module
@@ -260,7 +260,7 @@
class _IreeFunctionWrapper(object):
- """Wraps an IRRE function, making it callable."""
+ """Wraps an IREE function, making it callable."""
def __init__(self, context, f):
self._context = context