define maybe_fs_cached_name

This commit is contained in:
Qiacheng Li 2023-11-03 00:14:52 -07:00 committed by GitHub
parent 6671df65fa
commit d172a08db4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -121,6 +121,7 @@ def openvino_fx(subgraph, example_inputs):
try:
executor_parameters = None
inputs_reversed = False
maybe_fs_cached_name = None
if os.getenv("OPENVINO_TORCH_MODEL_CACHING") is not None:
# Create a hash to be used for caching
model_hash_str = sha256(subgraph.code.encode('utf-8')).hexdigest()