tensorflow/compiler/mlir/xla/hlo_function_importer.cc
// Note: This sanitization function causes an irreversible many-to-one mapping
// and any solution to mitigate this would cause issues with the reverse
// direction. Longterm solution is to add a function attribute to maintain the
// original HLO naming.
This sanitization function causes an irreversible many-to-one mapping
and any solution to mitigate this would cause issues with the reverse
direction. Longterm solution is to add a function attribute to maintain the
original HLO naming.
This sanitization function causes an irreversible many - to - one mapping and any solution to mitigate this would cause issues with the reverse direction . Longterm solution is to add a function attribute to maintain the original HLO naming .
string SanitizeFunctionName(llvm::StringRef name) {
  string output = name;
  llvm::for_each(output, [](char& x) { x = x == '-' ? '_' : x; });
  return output;
}
string SanitizeFunctionName ( llvm :: StringRef name ) { string output = name ; llvm :: for_each ( output , [ ] ( char & x ) { x = x == ' ' ? ' ' : x ; } ) ; return output ; }
Note: This sanitization function causes an irreversible many-to-one mapping
and any solution to mitigate this would cause issues with the reverse
direction.
Note : This sanitization function causes an irreversible many - to - one mapping and any solution to mitigate this would cause issues with the reverse direction .