Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/SOFIE_core/src/SOFIE_common.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -394,6 +394,7 @@ void UTILITY::UnidirectionalBroadcast(const std::vector<bool> & data, const std:
std::string UTILITY::Clean_name(std::string input_tensor_name){
std::string s (input_tensor_name);
std::replace( s.begin(), s.end(), '-', '_');
std::replace( s.begin(), s.end(), '.', '_');
// replace all non-alpohanumeric character except for "_"
s.erase(std::remove_if(s.begin(), s.end(), []( char const& c ) -> bool { return !std::isalnum(c) && c != '_'; } ), s.end());
return s;
Expand Down