Skip to content

Commit af5d309

Browse files
committed
[BugFix][MSC] split name_string with index by colon from the right
Fixes a naming mismatch in MSCGraph where tensor_name could formatted as 'string:index:index',and the corresponding node.name is 'string:index'. Splitting tensor_name from the right aligns it correctly. For example, the TFLite default input name 'serving_default_input:0' becomes 'serving_default_input:0:0' in MSCGraph, while node.name remains 'serving_default_input:0'.
1 parent f044eef commit af5d309

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/contrib/msc/core/utils.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ class StringUtils {
142142
*/
143143
TVM_DLL static const std::tuple<String, String> SplitOnce(const String& src_string,
144144
const String& sep,
145-
bool from_left = true);
145+
bool from_left = false);
146146

147147
/*!
148148
* \brief Get the tokens between left and right.

0 commit comments

Comments
 (0)