From c6d489d68ce45357943367d3d7545691d0525973 Mon Sep 17 00:00:00 2001 From: shubhambhokare1 Date: Mon, 5 Feb 2024 21:16:31 +0000 Subject: [PATCH] Remove submodule commits --- cmake/external/emsdk | 2 +- .../transformers/models/whisper/whisper_encoder_decoder_init.py | 1 + onnxruntime/python/tools/transformers/onnx_model.py | 1 - 3 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cmake/external/emsdk b/cmake/external/emsdk index a896e3d066448..4e2496141eda1 160000 --- a/cmake/external/emsdk +++ b/cmake/external/emsdk @@ -1 +1 @@ -Subproject commit a896e3d066448b3530dbcaa48869fafefd738f57 +Subproject commit 4e2496141eda15040c44e9bbf237a1326368e34c diff --git a/onnxruntime/python/tools/transformers/models/whisper/whisper_encoder_decoder_init.py b/onnxruntime/python/tools/transformers/models/whisper/whisper_encoder_decoder_init.py index 43ecaa7bd9c39..351173f525727 100644 --- a/onnxruntime/python/tools/transformers/models/whisper/whisper_encoder_decoder_init.py +++ b/onnxruntime/python/tools/transformers/models/whisper/whisper_encoder_decoder_init.py @@ -131,6 +131,7 @@ def export_onnx( ) input_list = inputs.to_list() + # TODO : Investigate whether copy of model if needed cloned_model = copy.deepcopy(model).to(device) out = cloned_model(inputs.encoder_input_ids, inputs.decoder_input_ids) present = out[2] diff --git a/onnxruntime/python/tools/transformers/onnx_model.py b/onnxruntime/python/tools/transformers/onnx_model.py index caac11f0ce522..7ae146ccc0b5d 100644 --- a/onnxruntime/python/tools/transformers/onnx_model.py +++ b/onnxruntime/python/tools/transformers/onnx_model.py @@ -443,7 +443,6 @@ def match_child_path( node (str): current node name. child_op_types (str): constraint of child node op_type of each input edge. child_output_index (list): constraint of input index of each input edge. None means no constraint. - output_name_to_node (dict): dictionary with output name as key, and node as value. return_indice (list): a list to append the input index When there is no constraint on input index of an edge.